From: Elizabeth Figura zfigura@codeweavers.com
--- dlls/quartz/dsoundrender.c | 6 ------ dlls/quartz/tests/dsoundrender.c | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c index 7ee4a680b5b..1dd6d456ae5 100644 --- a/dlls/quartz/dsoundrender.c +++ b/dlls/quartz/dsoundrender.c @@ -340,12 +340,6 @@ static HRESULT render_sample(struct dsound_render *filter, IMediaSample *pSample start = stop = -1; }
- if (IMediaSample_IsPreroll(pSample) == S_OK) - { - TRACE("Preroll!\n"); - return S_OK; - } - cbSrcStream = IMediaSample_GetActualDataLength(pSample); return send_sample_data(filter, start, pbSrcStream, cbSrcStream); } diff --git a/dlls/quartz/tests/dsoundrender.c b/dlls/quartz/tests/dsoundrender.c index 1864c0fcf01..49e435b8cce 100644 --- a/dlls/quartz/tests/dsoundrender.c +++ b/dlls/quartz/tests/dsoundrender.c @@ -906,6 +906,9 @@ static HRESULT send_frame(IMemInputPin *sink) hr = IMediaSample_SetTime(sample, &start_time, &end_time); ok(hr == S_OK, "Got hr %#lx.\n", hr);
+ hr = IMediaSample_SetPreroll(sample, TRUE); + ok(hr == S_OK, "Got hr %#lx.\n", hr); + params->sink = sink; params->sample = sample; thread = CreateThread(NULL, 0, frame_thread, params, 0, NULL);