mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 12:41:05 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue