mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
query: return NULL when parsing uri redirection that was not set
https://bugzilla.gnome.org/show_bug.cgi?id=706160
This commit is contained in:
parent
98d8cdfda4
commit
9819e48b92
1 changed files with 5 additions and 1 deletions
|
@ -1461,7 +1461,11 @@ gst_query_parse_uri_redirection (GstQuery * query, gchar ** uri)
|
|||
g_return_if_fail (GST_QUERY_TYPE (query) == GST_QUERY_URI);
|
||||
|
||||
structure = GST_QUERY_STRUCTURE (query);
|
||||
gst_structure_id_get (structure, GST_QUARK (URI_REDIRECTION), uri, NULL);
|
||||
if (uri) {
|
||||
if (!gst_structure_id_get (structure, GST_QUARK (URI_REDIRECTION),
|
||||
G_TYPE_STRING, uri, NULL))
|
||||
*uri = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue