summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-07-30 15:33:46 +0900
committerSebastian Dröge <sebastian@centricular.com>2015-07-30 15:51:53 +0300
commit8f7a84a9a16514ed033b30e62476b0fc0fe345b6 (patch)
tree75e1c380ef28f2c6ce0fc3bb1d125289128b5340 /gst
parent22baf364fe1fd6b8a56a759e6dab0d516f63e083 (diff)
downloadgstreamer-plugins-bad-8f7a84a9a16514ed033b30e62476b0fc0fe345b6.tar.gz
sdpdemux: assertion error due to wrong condition check
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
Diffstat (limited to 'gst')
-rw-r--r--gst/sdp/gstsdpdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c
index 010b0c546..67e4afda1 100644
--- a/gst/sdp/gstsdpdemux.c
+++ b/gst/sdp/gstsdpdemux.c
@@ -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;
}