mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +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)) {
|
if (GST_IS_URI_HANDLER (src)) {
|
||||||
gchar *uri = gst_uri_handler_get_uri (GST_URI_HANDLER (src));
|
gchar *uri = gst_uri_handler_get_uri (GST_URI_HANDLER (src));
|
||||||
|
|
||||||
gst_query_set_uri (query, uri);
|
if (uri != NULL) {
|
||||||
g_free (uri);
|
gst_query_set_uri (query, uri);
|
||||||
res = TRUE;
|
g_free (uri);
|
||||||
|
res = TRUE;
|
||||||
|
} else {
|
||||||
|
res = FALSE;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
res = FALSE;
|
res = FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue