aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-video-widget.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-03-09 04:18:21 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-09 04:18:21 +0800
commiteb4b63dde3b25fac37fd245ef39491320155c610 (patch)
tree84fecf5718865e718ed8d27e7abf4a59bf7456b4 /libempathy-gtk/empathy-video-widget.c
parent6c2118ffc618f12bef2ceecc2d2cae26cd76678a (diff)
downloadgsoc2013-empathy-eb4b63dde3b25fac37fd245ef39491320155c610.tar
gsoc2013-empathy-eb4b63dde3b25fac37fd245ef39491320155c610.tar.gz
gsoc2013-empathy-eb4b63dde3b25fac37fd245ef39491320155c610.tar.bz2
gsoc2013-empathy-eb4b63dde3b25fac37fd245ef39491320155c610.tar.lz
gsoc2013-empathy-eb4b63dde3b25fac37fd245ef39491320155c610.tar.xz
gsoc2013-empathy-eb4b63dde3b25fac37fd245ef39491320155c610.tar.zst
gsoc2013-empathy-eb4b63dde3b25fac37fd245ef39491320155c610.zip
Keep a weak pointer on the overlay in case it goes away
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2635
Diffstat (limited to 'libempathy-gtk/empathy-video-widget.c')
-rw-r--r--libempathy-gtk/empathy-video-widget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-video-widget.c b/libempathy-gtk/empathy-video-widget.c
index b32e81aef..568a54901 100644
--- a/libempathy-gtk/empathy-video-widget.c
+++ b/libempathy-gtk/empathy-video-widget.c
@@ -339,6 +339,8 @@ empathy_video_widget_element_added_cb (FsElementAddedNotifier *notifier,
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));
}