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

Alexandre Julliard julliard at winehq.org
Mon May 12 07:12:19 CDT 2008


Module: wine
Branch: master
Commit: c83a63d4b678f9d54ef2bb2560e8b390ff4cb61e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c83a63d4b678f9d54ef2bb2560e8b390ff4cb61e

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Fri May  9 15:15:07 2008 -0700

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

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;




More information about the wine-cvs mailing list