Zebediah Figura : strmbase: Check that the output pin supports the given media type before connecting.

Alexandre Julliard julliard at winehq.org
Fri May 4 17:10:34 CDT 2018


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu May  3 23:47:12 2018 -0500

strmbase: Check that the output pin supports the given media type before connecting.

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

---

 dlls/strmbase/pin.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/strmbase/pin.c b/dlls/strmbase/pin.c
index 48f2497..a3117dd 100644
--- a/dlls/strmbase/pin.c
+++ b/dlls/strmbase/pin.c
@@ -718,7 +718,8 @@ HRESULT WINAPI BaseOutputPinImpl_AttemptConnection(BasePin* iface, IPin * pRecei
     TRACE("(%p, %p)\n", pReceivePin, pmt);
     dump_AM_MEDIA_TYPE(pmt);
 
-    /* FIXME: call queryacceptproc */
+    if ((hr = This->pFuncsTable->base.pfnCheckMediaType(&This->pin, pmt)) != S_OK)
+        return hr;
 
     This->pin.pConnectedTo = pReceivePin;
     IPin_AddRef(pReceivePin);




More information about the wine-cvs mailing list