mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
basertppayload: Reject empty caps
https://bugzilla.gnome.org/show_bug.cgi?id=607353
This commit is contained in:
parent
4b771bff7a
commit
ad399c8069
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue