strmbase: Check for a NULL media type in IPin::ReceiveConnection().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-12-10 21:53:32 -06:00 committed by Alexandre Julliard
parent 490b245a20
commit 88898cf560
1 changed files with 3 additions and 0 deletions

View File

@ -633,6 +633,9 @@ HRESULT WINAPI BaseInputPinImpl_ReceiveConnection(IPin * iface, IPin * pReceiveP
TRACE("(%p)->(%p, %p)\n", This, pReceivePin, pmt);
strmbase_dump_media_type(pmt);
if (!pmt)
return E_POINTER;
EnterCriticalSection(&This->pin.filter->csFilter);
{
if (This->pin.filter->state != State_Stopped)