quartz/dsoundrender: Send EC_COMPLETE in IBaseFilter::Run() when not connected.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6e11378df2
commit
0b79e2caa6
|
@ -608,7 +608,7 @@ static HRESULT dsound_render_start_stream(struct strmbase_filter *iface, REFEREN
|
|||
if (filter->sink.pin.peer)
|
||||
IDirectSoundBuffer_Play(filter->dsbuffer, 0, 0, DSBPLAY_LOOPING);
|
||||
|
||||
if (filter->eos && graph
|
||||
if ((filter->eos || !filter->sink.pin.peer) && graph
|
||||
&& SUCCEEDED(IFilterGraph_QueryInterface(graph,
|
||||
&IID_IMediaEventSink, (void **)&event_sink)))
|
||||
{
|
||||
|
|
|
@ -1355,7 +1355,7 @@ static void test_unconnected_eos(void)
|
|||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
|
||||
ret = check_ec_complete(eventsrc, 0);
|
||||
todo_wine ok(ret == 1, "Got %u EC_COMPLETE events.\n", ret);
|
||||
ok(ret == 1, "Got %u EC_COMPLETE events.\n", ret);
|
||||
|
||||
hr = IMediaControl_Pause(control);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
|
@ -1367,7 +1367,7 @@ static void test_unconnected_eos(void)
|
|||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
|
||||
ret = check_ec_complete(eventsrc, 0);
|
||||
todo_wine ok(ret == 1, "Got %u EC_COMPLETE events.\n", ret);
|
||||
ok(ret == 1, "Got %u EC_COMPLETE events.\n", ret);
|
||||
|
||||
hr = IMediaControl_Stop(control);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
|
@ -1379,7 +1379,7 @@ static void test_unconnected_eos(void)
|
|||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
|
||||
ret = check_ec_complete(eventsrc, 0);
|
||||
todo_wine ok(ret == 1, "Got %u EC_COMPLETE events.\n", ret);
|
||||
ok(ret == 1, "Got %u EC_COMPLETE events.\n", ret);
|
||||
|
||||
IMediaControl_Release(control);
|
||||
IMediaEvent_Release(eventsrc);
|
||||
|
|
Loading…
Reference in New Issue