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
This commit is contained in:
Havard Graff 2016-05-04 11:48:04 +02:00 committed by Olivier Crête
parent 7cd36d2914
commit 18a1dc4ab6

View file

@ -602,6 +602,9 @@ gst_rtp_mux_setcaps (GstPad * pad, GstRTPMux * rtp_mux, GstCaps * caps)
GstRTPMuxPadPrivate *padpriv; GstRTPMuxPadPrivate *padpriv;
GstCaps *peercaps; GstCaps *peercaps;
if (caps == NULL)
return FALSE;
if (!gst_caps_is_fixed (caps)) if (!gst_caps_is_fixed (caps))
return FALSE; return FALSE;