quartz: Make the video renderer drop preroll samples.

This commit is contained in:
Maarten Lankhorst 2008-04-17 11:16:13 -07:00 committed by Alexandre Julliard
parent 7ca4a03428
commit 458b09a84d
1 changed files with 4 additions and 0 deletions

View File

@ -362,6 +362,10 @@ static HRESULT VideoRenderer_Sample(LPVOID iface, IMediaSample * pSample)
TRACE("%p %p\n", iface, pSample);
/* Preroll means the sample isn't shown, this is used for key frames and things like that */
if (IMediaSample_IsPreroll(pSample) == S_OK)
return S_OK;
hr = IMediaSample_GetPointer(pSample, &pbSrcStream);
if (FAILED(hr))
{