Maarten Lankhorst : quartz: Make the video renderer drop preroll samples.
Module: wine Branch: master Commit: 458b09a84dc168ca4a1cde927226b93ba4afff2a URL: http://source.winehq.org/git/wine.git/?a=commit;h=458b09a84dc168ca4a1cde9272... Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Thu Apr 17 11:16:13 2008 -0700 quartz: Make the video renderer drop preroll samples. --- dlls/quartz/videorenderer.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/quartz/videorenderer.c b/dlls/quartz/videorenderer.c index 48faf55..5179bd0 100644 --- a/dlls/quartz/videorenderer.c +++ b/dlls/quartz/videorenderer.c @@ -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)) {
participants (1)
-
Alexandre Julliard