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:
parent
7cd36d2914
commit
18a1dc4ab6
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user