mfplay: Implement IsProtected().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-04-06 10:25:28 +03:00 committed by Alexandre Julliard
parent 4e7f95220a
commit 7bbf8e53fc
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
MODULE = mfplay.dll
IMPORTLIB = mfplay
IMPORTS = mfplat uuid mfuuid
IMPORTS = mfplat mf uuid mfuuid
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native

View File

@ -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)