mfplay: Implement GetCharacteristics().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7bbf8e53fc
commit
527723bb6d
|
@ -295,9 +295,20 @@ static HRESULT WINAPI media_item_GetPresentationAttribute(IMFPMediaItem *iface,
|
|||
|
||||
static HRESULT WINAPI media_item_GetCharacteristics(IMFPMediaItem *iface, MFP_MEDIAITEM_CHARACTERISTICS *flags)
|
||||
{
|
||||
FIXME("%p, %p.\n", iface, flags);
|
||||
struct media_item *item = impl_from_IMFPMediaItem(iface);
|
||||
HRESULT hr;
|
||||
|
||||
return E_NOTIMPL;
|
||||
TRACE("%p, %p.\n", iface, flags);
|
||||
|
||||
*flags = 0;
|
||||
|
||||
if (SUCCEEDED(hr = IMFMediaSource_GetCharacteristics(item->source, flags)))
|
||||
{
|
||||
*flags &= (MFP_MEDIAITEM_IS_LIVE | MFP_MEDIAITEM_CAN_SEEK |
|
||||
MFP_MEDIAITEM_CAN_PAUSE | MFP_MEDIAITEM_HAS_SLOW_SEEK);
|
||||
}
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI media_item_SetStreamSink(IMFPMediaItem *iface, DWORD index, IUnknown *sink)
|
||||
|
|
Loading…
Reference in New Issue