mfplay: Implement GetDuration() for media items.

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-07 11:07:03 +03:00 committed by Alexandre Julliard
parent c3c51485fb
commit 4c77a97037

View file

@ -407,9 +407,11 @@ static HRESULT WINAPI media_item_IsProtected(IMFPMediaItem *iface, BOOL *protect
static HRESULT WINAPI media_item_GetDuration(IMFPMediaItem *iface, REFGUID format, PROPVARIANT *value)
{
FIXME("%p, %s, %p.\n", iface, debugstr_guid(format), value);
struct media_item *item = impl_from_IMFPMediaItem(iface);
return E_NOTIMPL;
TRACE("%p, %s, %p.\n", iface, debugstr_guid(format), value);
return IMFPresentationDescriptor_GetItem(item->pd, &MF_PD_DURATION, value);
}
static HRESULT WINAPI media_item_GetNumberOfStreams(IMFPMediaItem *iface, DWORD *count)