souphttpsrc: fix critical setting a NULL uri redirection

This commit is contained in:
Andoni Morales Alastruey 2013-08-13 12:02:29 +02:00
parent b9faeab236
commit 24b4ea3418

View file

@ -1466,7 +1466,8 @@ gst_soup_http_src_query (GstBaseSrc * bsrc, GstQuery * query)
switch (GST_QUERY_TYPE (query)) {
case GST_QUERY_URI:
gst_query_set_uri (query, src->location);
gst_query_set_uri_redirection (query, src->redirection_uri);
if (src->redirection_uri != NULL)
gst_query_set_uri_redirection (query, src->redirection_uri);
ret = TRUE;
break;
default: