From 18a1dc4ab6ed81b6c2d0ed4a9e66c804e83026c3 Mon Sep 17 00:00:00 2001 From: Havard Graff Date: Wed, 4 May 2016 11:48:04 +0200 Subject: [PATCH] rtpmux: protect against NULL caps Due to state-changes deactivating the pad from another thread, this can happen. https://bugzilla.gnome.org/show_bug.cgi?id=795162 --- gst/rtpmanager/gstrtpmux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/rtpmanager/gstrtpmux.c b/gst/rtpmanager/gstrtpmux.c index b79a5cffb1..1841b97e93 100644 --- a/gst/rtpmanager/gstrtpmux.c +++ b/gst/rtpmanager/gstrtpmux.c @@ -602,6 +602,9 @@ gst_rtp_mux_setcaps (GstPad * pad, GstRTPMux * rtp_mux, GstCaps * caps) GstRTPMuxPadPrivate *padpriv; GstCaps *peercaps; + if (caps == NULL) + return FALSE; + if (!gst_caps_is_fixed (caps)) return FALSE;