mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
basesrc: don't try to answer URI queries with NULL URIs
Should make unit tests in -base that use appsrc a bit happier.
This commit is contained in:
parent
0d22988e5c
commit
9427851fd2
1 changed files with 7 additions and 3 deletions
|
@ -1206,9 +1206,13 @@ gst_base_src_default_query (GstBaseSrc * src, GstQuery * query)
|
|||
if (GST_IS_URI_HANDLER (src)) {
|
||||
gchar *uri = gst_uri_handler_get_uri (GST_URI_HANDLER (src));
|
||||
|
||||
gst_query_set_uri (query, uri);
|
||||
g_free (uri);
|
||||
res = TRUE;
|
||||
if (uri != NULL) {
|
||||
gst_query_set_uri (query, uri);
|
||||
g_free (uri);
|
||||
res = TRUE;
|
||||
} else {
|
||||
res = FALSE;
|
||||
}
|
||||
} else {
|
||||
res = FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue