From df021c1a4b2009f1964bd277cc468cd72c756130 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 17 Jul 2015 15:57:37 -0400 Subject: [PATCH] gtksink: "widget" must be access from main thread Document that "widget" property must be accessed from the main thread (where GTK is running). This is the same for state transition on these elements. It is very natural to do so un GTK applications. --- ext/gtk/gstgtkbasesink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/gtk/gstgtkbasesink.c b/ext/gtk/gstgtkbasesink.c index 6fd70b022..d53d77c58 100644 --- a/ext/gtk/gstgtkbasesink.c +++ b/ext/gtk/gstgtkbasesink.c @@ -88,7 +88,8 @@ gst_gtk_base_sink_class_init (GstGtkBaseSinkClass * klass) g_object_class_install_property (gobject_class, PROP_WIDGET, g_param_spec_object ("widget", "Gtk Widget", - "The GtkWidget to place in the widget heirachy", + "The GtkWidget to place in the widget hierarchy " + "(must only be get from the GTK main thread)", GTK_TYPE_WIDGET, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_FORCE_ASPECT_RATIO, -- 2.34.1