summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorArnaud Vrac <avrac@freebox.fr>2013-08-16 20:36:53 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-08-19 10:11:24 +0200
commit9819e48b92b6667f8ea6f0b62f7b8da7b77309da (patch)
treef1a16c88e0ff4b782980e5ccc9b6859d491737fc /gst
parent98d8cdfda4f5064ab9a37b04d5665a58fc9c6626 (diff)
query: return NULL when parsing uri redirection that was not set
https://bugzilla.gnome.org/show_bug.cgi?id=706160
Diffstat (limited to 'gst')
-rw-r--r--gst/gstquery.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/gstquery.c b/gst/gstquery.c
index f15708a4b..3b9eddc83 100644
--- a/gst/gstquery.c
+++ b/gst/gstquery.c
@@ -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;
+ }
}
/**