projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9025a5
)
token: Validate args for gst_rtsp_token_is_allowed
author
Sebastian Rasmussen
<sebras@hotmail.com>
Sat, 19 Oct 2013 17:24:34 +0000
(19:24 +0200)
committer
Wim Taymans
<wim.taymans@gmail.com>
Tue, 12 Nov 2013 09:38:37 +0000
(10:38 +0100)
See https://bugzilla.gnome.org/show_bug.cgi?id=710520
gst/rtsp-server/rtsp-token.c
patch
|
blob
|
history
diff --git
a/gst/rtsp-server/rtsp-token.c
b/gst/rtsp-server/rtsp-token.c
index
f07f1c2
..
787213d
100644
(file)
--- a/
gst/rtsp-server/rtsp-token.c
+++ b/
gst/rtsp-server/rtsp-token.c
@@
-239,6
+239,9
@@
gst_rtsp_token_is_allowed (GstRTSPToken * token, const gchar * field)
{
gboolean result;
+ g_return_val_if_fail (GST_IS_RTSP_TOKEN (token), FALSE);
+ g_return_val_if_fail (field != NULL, FALSE);
+
if (!gst_structure_get_boolean (GST_RTSP_TOKEN_STRUCTURE (token), field,
&result))
result = FALSE;