projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a171eb8
)
discoverer: Start discovering next URI from right thread
author
Thibault Saunier
<tsaunier@igalia.com>
Mon, 10 Feb 2020 20:15:13 +0000
(17:15 -0300)
committer
Thibault Saunier
<tsaunier@igalia.com>
Mon, 10 Feb 2020 20:16:42 +0000
(17:16 -0300)
When using the cache, we were not using the right GMainContext to setup
next URI to discovery, fix that.
gst-libs/gst/pbutils/gstdiscoverer.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/pbutils/gstdiscoverer.c
b/gst-libs/gst/pbutils/gstdiscoverer.c
index
25e47d5
..
2fb97cc
100644
(file)
--- a/
gst-libs/gst/pbutils/gstdiscoverer.c
+++ b/
gst-libs/gst/pbutils/gstdiscoverer.c
@@
-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;
}