Skip to content
Snippets Groups Projects
Commit abf36a86 authored by Elizabeth Figura's avatar Elizabeth Figura Committed by Alexandre Julliard
Browse files

quartz/dsoundrender: Do not ignore preroll samples.

parent 2b63a021
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment