Commit 18a1dc4a authored by Håvard Graff's avatar Håvard Graff Committed by Olivier Crête

rtpmux: protect against NULL caps

Due to state-changes deactivating the pad from another thread,
this can happen.
parent 7cd36d29
......@@ -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;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment