mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
discoverer: Start discovering next URI from right thread
When using the cache, we were not using the right GMainContext to setup next URI to discovery, fix that.
This commit is contained in:
parent
a171eb80d6
commit
1e9da26b68
1 changed files with 5 additions and 2 deletions
|
@ -2035,10 +2035,13 @@ start_discovering (GstDiscoverer * dc)
|
|||
|
||||
if (dc->priv->async) {
|
||||
if (ready) {
|
||||
g_idle_add_full (G_PRIORITY_DEFAULT_IDLE,
|
||||
GSource *source;
|
||||
|
||||
source = g_idle_source_new ();
|
||||
g_source_set_callback (source,
|
||||
(GSourceFunc) emit_discovererd_and_next, gst_object_ref (dc),
|
||||
gst_object_unref);
|
||||
|
||||
g_source_attach (source, dc->priv->ctx);
|
||||
goto beach;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue