sdpdemux: assertion error due to wrong condition check
authorVineeth TM <vineeth.tm@samsung.com>
Thu, 30 Jul 2015 06:33:46 +0000 (15:33 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 30 Jul 2015 12:51:53 +0000 (15:51 +0300)
In media to caps function, reserved_keys array is being used for variable i,
leading to GLib-CRITICAL **: g_ascii_strcasecmp: assertion 's1 != NULL' failed
changed it to variable j

https://bugzilla.gnome.org/show_bug.cgi?id=753009

gst/sdp/gstsdpdemux.c

index 010b0c5460919f15fa6812f17c83d6257b02bb12..67e4afda1d05d4d2daf0614db249a90401c1dc47 100644 (file)
@@ -696,7 +696,7 @@ gst_sdp_demux_media_to_caps (gint pt, const GstSDPMedia * media)
          * in the caps... and thus fail to create valid RTP caps
          */
         for (j = 0; j < G_N_ELEMENTS (reserved_keys); j++) {
-          if (g_ascii_strcasecmp (reserved_keys[i], key) == 0) {
+          if (g_ascii_strcasecmp (reserved_keys[j], key) == 0) {
             key = "";
             break;
           }