mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
pbutils: discoverer: Set GError when NULL info is being returned.
When discovering the URI, if info is NULL, then instead of just returning NULL, set the GError, so the error can be printed and notified. https://bugzilla.gnome.org/show_bug.cgi?id=753701
This commit is contained in:
parent
6ee8b22c40
commit
fd7724b6e1
1 changed files with 3 additions and 0 deletions
|
@ -2107,6 +2107,9 @@ gst_discoverer_discover_uri (GstDiscoverer * discoverer, const gchar * uri,
|
|||
if (G_UNLIKELY (discoverer->priv->current_info)) {
|
||||
DISCO_UNLOCK (discoverer);
|
||||
GST_WARNING_OBJECT (discoverer, "Already handling a uri");
|
||||
if (err)
|
||||
*err = g_error_new (GST_CORE_ERROR, GST_CORE_ERROR_FAILED,
|
||||
"Already handling a uri");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue