Commit ad399c80 authored by Olivier Crête's avatar Olivier Crête Committed by Wim Taymans
Browse files

basertppayload: Reject empty caps

https://bugzilla.gnome.org/show_bug.cgi?id=607353
parent 4b771bff
......@@ -556,6 +556,11 @@ gst_basertppayload_set_outcaps (GstBaseRTPPayload * payload, gchar * fieldname,
gst_caps_unref (srccaps);
gst_caps_unref (peercaps);
if (gst_caps_is_empty (temp)) {
gst_caps_unref (temp);
return FALSE;
}
/* now fixate, start by taking the first caps */
gst_caps_truncate (temp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment