Commit c83a63d4 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

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

Based on a patch by Olivier Samyn.
parent 801c9698
......@@ -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;
......
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