quartz: Drop preroll frames in directsound renderer too.

This commit is contained in:
Maarten Lankhorst 2008-04-18 16:14:41 -07:00 committed by Alexandre Julliard
parent fb2c975a8f
commit d7fbc7ef8c
1 changed files with 8 additions and 1 deletions

View File

@ -242,8 +242,15 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
TRACE("%p %p\n", iface, pSample);
/* Slightly incorrect, Pause completes when a frame is received so we should signal
* pause completion here, but for sound receiving a single frame doesn't make sense
* pause completion here, but for sound playing a single frame doesn't make sense
*/
if (IMediaSample_IsPreroll(pSample) == S_OK)
{
TRACE("Preroll!\n");
return S_OK;
}
if (This->state == State_Paused)
return S_FALSE;