mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
gtk: Only run from the main thread in stop() if we created the window
We're not doing anything at all from the main thread in other cases.
This commit is contained in:
parent
4807201b04
commit
bcda593f12
1 changed files with 7 additions and 2 deletions
|
@ -342,8 +342,13 @@ gst_gtk_base_sink_stop_on_main (GstBaseSink * bsink)
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_gtk_base_sink_stop (GstBaseSink * bsink)
|
gst_gtk_base_sink_stop (GstBaseSink * bsink)
|
||||||
{
|
{
|
||||||
return ! !gst_gtk_invoke_on_main ((GThreadFunc)
|
GstGtkBaseSink *gst_sink = GST_GTK_BASE_SINK (bsink);
|
||||||
gst_gtk_base_sink_stop_on_main, bsink);
|
|
||||||
|
if (gst_sink->window)
|
||||||
|
return ! !gst_gtk_invoke_on_main ((GThreadFunc)
|
||||||
|
gst_gtk_base_sink_stop_on_main, bsink);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue