summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2020-02-10 17:15:13 -0300
committerTim-Philipp Müller <tim@centricular.com>2020-02-12 11:22:26 +0000
commitc2e5dfcad797a0f96e7dde1de601e3e62c13424e (patch)
tree56ce2477cca7ba491583743374adbbc685754670
parent5830a611f52918b9412929c3bd23864ac810ead5 (diff)
downloadgstreamer-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.c7
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;
}