mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
mf/evr: Implement OnClockSetRate().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8680afcc06
commit
0ca0b5a5ef
1 changed files with 16 additions and 2 deletions
|
@ -1499,9 +1499,23 @@ static HRESULT WINAPI video_renderer_clock_sink_OnClockRestart(IMFClockStateSink
|
|||
|
||||
static HRESULT WINAPI video_renderer_clock_sink_OnClockSetRate(IMFClockStateSink *iface, MFTIME systime, float rate)
|
||||
{
|
||||
FIXME("%p, %s, %f.\n", iface, debugstr_time(systime), rate);
|
||||
struct video_renderer *renderer = impl_from_IMFClockStateSink(iface);
|
||||
IMFClockStateSink *sink;
|
||||
|
||||
return E_NOTIMPL;
|
||||
TRACE("%p, %s, %f.\n", iface, debugstr_time(systime), rate);
|
||||
|
||||
EnterCriticalSection(&renderer->cs);
|
||||
|
||||
IMFVideoPresenter_OnClockSetRate(renderer->presenter, systime, rate);
|
||||
if (SUCCEEDED(IMFTransform_QueryInterface(renderer->mixer, &IID_IMFClockStateSink, (void **)&sink)))
|
||||
{
|
||||
IMFClockStateSink_OnClockSetRate(sink, systime, rate);
|
||||
IMFClockStateSink_Release(sink);
|
||||
}
|
||||
|
||||
LeaveCriticalSection(&renderer->cs);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static const IMFClockStateSinkVtbl video_renderer_clock_sink_vtbl =
|
||||
|
|
Loading…
Reference in a new issue