Erich Hoover : quartz: Return IMediaSeeking interface for Parser OutputPin.

Alexandre Julliard julliard at winehq.org
Tue May 17 12:52:59 CDT 2011


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

Author: Erich Hoover <ehoover at mines.edu>
Date:   Sat May 14 11:14:36 2011 -0600

quartz: Return IMediaSeeking interface for Parser OutputPin.

---

 dlls/quartz/parser.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/quartz/parser.c b/dlls/quartz/parser.c
index 9d7baa0..b5a305c 100644
--- a/dlls/quartz/parser.c
+++ b/dlls/quartz/parser.c
@@ -624,10 +624,9 @@ static HRESULT WINAPI Parser_OutputPin_QueryInterface(IPin * iface, REFIID riid,
         *ppv = iface;
     else if (IsEqualIID(riid, &IID_IPin))
         *ppv = iface;
+    /* The Parser filter does not support querying IMediaSeeking, return it directly */
     else if (IsEqualIID(riid, &IID_IMediaSeeking))
-    {
-        return IBaseFilter_QueryInterface(This->pin.pin.pinInfo.pFilter, &IID_IMediaSeeking, ppv);
-    }
+        *ppv = &((ParserImpl*)This->pin.pin.pinInfo.pFilter)->sourceSeeking;
 
     if (*ppv)
     {




More information about the wine-cvs mailing list