Commit 35569903 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfmediaengine: Force returned playback position after presentation ends.

parent 67815c2f
......@@ -1214,7 +1214,11 @@ static double WINAPI media_engine_GetCurrentTime(IMFMediaEngine *iface)
TRACE("%p.\n", iface);
EnterCriticalSection(&engine->cs);
if (SUCCEEDED(IMFPresentationClock_GetTime(engine->clock, &clocktime)))
if (engine->flags & FLAGS_ENGINE_IS_ENDED)
{
ret = engine->duration;
}
else if (SUCCEEDED(IMFPresentationClock_GetTime(engine->clock, &clocktime)))
{
ret = (double)clocktime / 10000000.0;
}
......
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