gtk: fix compiler warning with recent glib
authorArnaud Bonatti <arnaud.bonatti@gmail.com>
Wed, 21 Feb 2018 10:12:10 +0000 (11:12 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 21 Feb 2018 11:35:39 +0000 (11:35 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=793688

ext/gtk/gstgtkbasesink.c

index 843c97f..2f6734f 100644 (file)
@@ -396,7 +396,7 @@ gst_gtk_base_sink_change_state (GstElement * element, GstStateChange transition)
 
       GST_OBJECT_LOCK (gtk_sink);
       if (gtk_sink->window)
-        window = g_object_ref (gtk_sink->window);
+        window = g_object_ref (GTK_WINDOW (gtk_sink->window));
       GST_OBJECT_UNLOCK (gtk_sink);
 
       if (window)