Commit 3dc8384a authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

quartz: Reject samples in video renderer when stopped.

When stopped video renderer no longer updates, so don't even try.
parent 382a6139
......@@ -357,6 +357,9 @@ static HRESULT VideoRenderer_Sample(LPVOID iface, IMediaSample * pSample)
REFERENCE_TIME tStart, tStop;
HRESULT hr;
if (This->state == State_Stopped)
return S_FALSE;
TRACE("%p %p\n", iface, pSample);
hr = IMediaSample_GetPointer(pSample, &pbSrcStream);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment