[PATCH v2 1/6] strmbase: Check for a NULL media type in IPin::ReceiveConnection(). (original) (raw)
Zebediah Figura z.figura12 at gmail.com
Tue Dec 10 21:53:32 CST 2019
- Previous message (by thread): [PATCH v2 1/5] wined3d: Introduce wined3d_device_apply_stateblock().
- Next message (by thread): [PATCH v2 2/6] qcap/avimux: Use strmbase sink connection methods.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
dlls/strmbase/pin.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/strmbase/pin.c b/dlls/strmbase/pin.c index 5255a6c7b0b..3dd00b27ccc 100644 --- a/dlls/strmbase/pin.c +++ b/dlls/strmbase/pin.c @@ -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)
2.24.0
- Previous message (by thread): [PATCH v2 1/5] wined3d: Introduce wined3d_device_apply_stateblock().
- Next message (by thread): [PATCH v2 2/6] qcap/avimux: Use strmbase sink connection methods.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]