quartz/filtergraph: Set the current position in IMediaFilter::Stop().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
539fa6922b
commit
facbd0585c
|
@ -5207,6 +5207,10 @@ static HRESULT WINAPI MediaFilter_Stop(IMediaFilter *iface)
|
|||
SendFilterMessage(graph, SendStop, 0);
|
||||
graph->state = State_Stopped;
|
||||
|
||||
/* Update the current position, probably to synchronize multiple streams. */
|
||||
IMediaSeeking_SetPositions(&graph->IMediaSeeking_iface, &graph->current_pos,
|
||||
AM_SEEKING_AbsolutePositioning, NULL, AM_SEEKING_NoPositioning);
|
||||
|
||||
LeaveCriticalSection(&graph->cs);
|
||||
return S_OK;
|
||||
}
|
||||
|
|
|
@ -3952,7 +3952,7 @@ static void test_graph_seeking(void)
|
|||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
hr = IMediaSeeking_GetCurrentPosition(seeking, &time);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
todo_wine ok(time == 12340000, "Got time %s.\n", wine_dbgstr_longlong(time));
|
||||
ok(time == 12340000, "Got time %s.\n", wine_dbgstr_longlong(time));
|
||||
|
||||
hr = IMediaFilter_SetSyncSource(filter, NULL);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
|
@ -3968,7 +3968,7 @@ static void test_graph_seeking(void)
|
|||
hr = IMediaSeeking_GetPositions(seeking, ¤t, &stop);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
todo_wine ok(!current, "Got time %s.\n", wine_dbgstr_longlong(current));
|
||||
todo_wine ok(!stop, "Got time %s.\n", wine_dbgstr_longlong(stop));
|
||||
ok(!stop, "Got time %s.\n", wine_dbgstr_longlong(stop));
|
||||
|
||||
hr = IMediaControl_Stop(control);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
|
|
Loading…
Reference in New Issue