Commit 9819e48b authored by Arnaud Vrac's avatar Arnaud Vrac Committed by Sebastian Dröge

query: return NULL when parsing uri redirection that was not set
parent 98d8cdfd
......@@ -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),
*uri = NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment