Discussion:
IMediaSeeking and windowless VMR9
(too old to reply)
d***@gmail.com
2007-11-29 16:24:27 UTC
Permalink
Hello everyone,


I'm having a problem with VMR9, windowless mode.


It looks like seeking the graph does not update the current image
properly.
This occurs immediately after IMediaControl::Pause() or simply after
calling IMediaSeeking::SetPositions(...).


The poster image does not correspond to the current position.
(IMediaSeeking::GetPositions() confirms that the current position has
been set correctly).


Has anyone encountered the same problem?
I am wondering if there is a setting for seeking in windowless mode?


Thank you.
Olie
2007-12-03 16:59:37 UTC
Permalink
The problem is that I IMediaSeeking controls the graph and not the
decoder output. So if you pause the graph you pause everything. If
you try and seek while you are paused the decoder can not update the
current image as the graph is in the paused state.

The way around this is to either get control of the decoder and pause
that without pausing the whole graph. That way you can seek to the
position and the graph will be running to display the new video frame.
The problem is it is not always possible to get control of the
decoder. So the other option is to un-pause the graph for long enough
so the buffers empty and the frame you have seeked to is displayed.
Loading...