projects
/
platform
/
upstream
/
gst-rtsp-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae7bec9
)
rtsp-media: assertion error due to wrong condition check
author
Vineeth TM
<vineeth.tm@samsung.com>
Thu, 30 Jul 2015 06:32:43 +0000
(15:32 +0900)
committer
Sebastian Dröge
<sebastian@centricular.com>
Thu, 30 Jul 2015 12:52:08 +0000
(15:52 +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/rtsp-server/rtsp-media.c
patch
|
blob
|
history
diff --git
a/gst/rtsp-server/rtsp-media.c
b/gst/rtsp-server/rtsp-media.c
index
31f9f35
..
011dae3
100644
(file)
--- a/
gst/rtsp-server/rtsp-media.c
+++ b/
gst/rtsp-server/rtsp-media.c
@@
-3300,7
+3300,7
@@
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;
}