[PATCH 1/3] strmbase: Check that the output pin supports the given media type before connecting.
Zebediah Figura
z.figura12 at gmail.com
Thu May 3 23:47:12 CDT 2018
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
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);
--
2.7.4
More information about the wine-devel
mailing list