mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
token: Validate args for gst_rtsp_token_is_allowed
See https://bugzilla.gnome.org/show_bug.cgi?id=710520
This commit is contained in:
parent
c9025a58e1
commit
e4509ed92c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue