empathy r2635 - trunk/libempathy-gtk



Author: xclaesse
Date: Sun Mar  8 20:18:21 2009
New Revision: 2635
URL: http://svn.gnome.org/viewvc/empathy?rev=2635&view=rev

Log:
Keep a weak pointer on the overlay in case it goes away

Signed-off-by: Sjoerd Simons <sjoerd simons collabora co uk>

Modified:
   trunk/libempathy-gtk/empathy-video-widget.c

Modified: trunk/libempathy-gtk/empathy-video-widget.c
==============================================================================
--- trunk/libempathy-gtk/empathy-video-widget.c	(original)
+++ trunk/libempathy-gtk/empathy-video-widget.c	Sun Mar  8 20:18:21 2009
@@ -339,6 +339,8 @@
   if (priv->overlay == NULL && GST_IS_X_OVERLAY (element))
     {
       priv->overlay = element;
+      g_object_add_weak_pointer (G_OBJECT (element),
+        (gpointer) &priv->overlay);
       empathy_video_widget_element_set_sink_properties_unlocked (self);
       gst_x_overlay_expose (GST_X_OVERLAY (priv->overlay));
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]