Commit 7bbf8e53 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfplay: Implement IsProtected().

parent 4e7f9522
MODULE = mfplay.dll
IMPORTLIB = mfplay
IMPORTS = mfplat uuid mfuuid
IMPORTS = mfplat mf uuid mfuuid
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
......
......@@ -215,9 +215,13 @@ static HRESULT WINAPI media_item_HasAudio(IMFPMediaItem *iface, BOOL *has_audio,
static HRESULT WINAPI media_item_IsProtected(IMFPMediaItem *iface, BOOL *protected)
{
FIXME("%p, %p.\n", iface, protected);
struct media_item *item = impl_from_IMFPMediaItem(iface);
return E_NOTIMPL;
TRACE("%p, %p.\n", iface, protected);
*protected = MFRequireProtectedEnvironment(item->pd) == S_OK;
return S_OK;
}
static HRESULT WINAPI media_item_GetDuration(IMFPMediaItem *iface, REFGUID format, PROPVARIANT *value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment