diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2010-01-18 14:33:30 -0500 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-01-19 13:29:19 +0100 |
commit | ad399c806922a419713d50a97731ae3bc5fb8b6d (patch) | |
tree | caa8b8dc3bd6b3995b177ef995ef63a1b5eaabbc | |
parent | 4b771bff7a224d179c67cdf8ab105f12079b3286 (diff) |
basertppayload: Reject empty caps
https://bugzilla.gnome.org/show_bug.cgi?id=607353
-rw-r--r-- | gst-libs/gst/rtp/gstbasertppayload.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst-libs/gst/rtp/gstbasertppayload.c b/gst-libs/gst/rtp/gstbasertppayload.c index a6d8eb3c..ed5accce 100644 --- a/gst-libs/gst/rtp/gstbasertppayload.c +++ b/gst-libs/gst/rtp/gstbasertppayload.c @@ -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); |