Zebediah Figura : quartz/filtergraph: Use IFilterGraph2::ConnectDirect() instead of calling IPin::Connect().

Alexandre Julliard julliard at winehq.org
Thu Feb 20 18:26:13 CST 2020


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed Feb 19 20:44:55 2020 -0600

quartz/filtergraph: Use IFilterGraph2::ConnectDirect() instead of calling IPin::Connect().

It will need to do some bookkeeping.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/quartz/filtergraph.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
index 60bea5542f..46ae113a4b 100644
--- a/dlls/quartz/filtergraph.c
+++ b/dlls/quartz/filtergraph.c
@@ -1123,7 +1123,7 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
         goto out;
 
     /* Try direct connection first */
-    hr = IPin_Connect(ppinOut, ppinIn, NULL);
+    hr = IFilterGraph2_ConnectDirect(iface, ppinOut, ppinIn, NULL);
 
     /* If direct connection succeeded, we should propagate that return value.
      * If it returned VFW_E_NOT_CONNECTED or VFW_E_NO_AUDIO_HARDWARE, then don't
@@ -1279,7 +1279,7 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
             goto error;
         }
 
-        hr = IPin_Connect(ppinOut, ppinfilter, NULL);
+        hr = IFilterGraph2_ConnectDirect(iface, ppinOut, ppinfilter, NULL);
         if (FAILED(hr)) {
             TRACE("Cannot connect to filter (%x), trying next one\n", hr);
             goto error;
@@ -1591,7 +1591,7 @@ static HRESULT WINAPI FilterGraph2_Render(IFilterGraph2 *iface, IPin *ppinOut)
                 }
 
                 /* Connect the pin to the "Renderer" */
-                hr = IPin_Connect(ppinOut, ppinfilter, NULL);
+                hr = IFilterGraph2_ConnectDirect(iface, ppinOut, ppinfilter, NULL);
                 IPin_Release(ppinfilter);
 
                 if (FAILED(hr)) {




More information about the wine-cvs mailing list