From cf19525d5c1e6ce7d8d0a4f3e5371d2a7e27fe70 Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Thu, 30 Jul 2015 15:32:09 +0900 Subject: [PATCH] rtspsrc: 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 --- gst/rtsp/gstrtspsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 3edb752..8a5424e 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -2182,7 +2182,7 @@ gst_rtspsrc_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; } -- 2.7.4