Commit 283d4bab authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

mfmediaengine: Implement IMFMediaEngineEx::SetCurrentTimeEx().

parent 2bcc87b3
......@@ -3020,9 +3020,24 @@ static HRESULT WINAPI media_engine_SetRealTimeMode(IMFMediaEngineEx *iface, BOOL
static HRESULT WINAPI media_engine_SetCurrentTimeEx(IMFMediaEngineEx *iface, double seektime, MF_MEDIA_ENGINE_SEEK_MODE mode)
{
FIXME("%p, %f, %#x stub.\n", iface, seektime, mode);
struct media_engine *engine = impl_from_IMFMediaEngineEx(iface);
HRESULT hr;
return E_NOTIMPL;
TRACE("%p, %f, %#x.\n", iface, seektime, mode);
if (mode)
FIXME("mode %#x is ignored.\n", mode);
EnterCriticalSection(&engine->cs);
if (engine->flags & FLAGS_ENGINE_SHUT_DOWN)
hr = MF_E_SHUTDOWN;
else
hr = media_engine_set_current_time(engine, seektime);
LeaveCriticalSection(&engine->cs);
return hr;
}
static HRESULT WINAPI media_engine_EnableTimeUpdateTimer(IMFMediaEngineEx *iface, BOOL enable)
......
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