[PATCH 4/7] quartz/filtergraph: Use IFilterGraph2::ConnectDirect() instead of calling IPin::Connect().

Zebediah Figura z.figura12 at gmail.com
Wed Feb 19 20:44:55 CST 2020


It will need to do some bookkeeping.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 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 60bea5542ff..46ae113a4bd 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)) {
-- 
2.25.0




More information about the wine-devel mailing list