[PATCH 5/9] mfplay: Implement GetDuration() for media items.
Nikolay Sivov
nsivov at codeweavers.com
Wed Apr 7 03:07:03 CDT 2021
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/mfplay/player.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/mfplay/player.c b/dlls/mfplay/player.c
index 9ef926f00f6..ddc83e9f441 100644
--- a/dlls/mfplay/player.c
+++ b/dlls/mfplay/player.c
@@ -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)
--
2.30.2
More information about the wine-devel
mailing list