diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2020-02-10 17:15:13 -0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-02-12 11:22:26 +0000 |
commit | c2e5dfcad797a0f96e7dde1de601e3e62c13424e (patch) | |
tree | 56ce2477cca7ba491583743374adbbc685754670 | |
parent | 5830a611f52918b9412929c3bd23864ac810ead5 (diff) | |
download | gstreamer-plugins-base-c2e5dfcad797a0f96e7dde1de601e3e62c13424e.tar.gz |
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.
-rw-r--r-- | gst-libs/gst/pbutils/gstdiscoverer.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gst-libs/gst/pbutils/gstdiscoverer.c b/gst-libs/gst/pbutils/gstdiscoverer.c index 5d199127d..f14bc1313 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer.c +++ b/gst-libs/gst/pbutils/gstdiscoverer.c @@ -2033,10 +2033,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; } |