quartz: Reject samples in video renderer when stopped.
When stopped video renderer no longer updates, so don't even try.
This commit is contained in:
parent
382a61391f
commit
3dc8384aa9
|
@ -357,8 +357,11 @@ 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);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue