Commit af717f34 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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

parent e637a6f0
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment