quartz: Don't return a pin in filesource when there is none.
Based on a patch by Olivier Samyn.
This commit is contained in:
parent
801c969884
commit
c83a63d4b6
|
@ -529,7 +529,7 @@ static HRESULT AsyncReader_GetPin(IBaseFilter *iface, ULONG pos, IPin **pin, DWO
|
|||
/* Our pins are almost static, not changing so setting static tick count is ok */
|
||||
*lastsynctick = This->lastpinchange;
|
||||
|
||||
if (pos >= 1)
|
||||
if (pos >= 1 || !This->pOutputPin)
|
||||
return S_FALSE;
|
||||
|
||||
*pin = (IPin *)This->pOutputPin;
|
||||
|
|
Loading…
Reference in New Issue