From 0861279f3035209a14f2834d575c8b32055eca90 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Fri, 9 May 2008 15:15:07 -0700 Subject: [PATCH] quartz: Don't return a pin when there is none in filesource Based on a patch by Olivier Samyn --- dlls/quartz/filesource.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c index f410b56..ffb5bce 100644 --- a/dlls/quartz/filesource.c +++ b/dlls/quartz/filesource.c @@ -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; -- 1.5.4.1