quartz: Don't return a pin in filesource when there is none.

Based on a patch by Olivier Samyn.
This commit is contained in:
Maarten Lankhorst 2008-05-09 15:15:07 -07:00 committed by Alexandre Julliard
parent 801c969884
commit c83a63d4b6
1 changed files with 1 additions and 1 deletions

View File

@ -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;