[longomatch] Don't try to set the xoverlay window in expose(). This should be handled with the "prepare-xwindow-i



commit 04a78c0f7a4b6e4e27cdeedca3155f154672b312
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Feb 14 21:38:13 2010 +0100

    Don't try to set the xoverlay window in expose().
    This should be handled with the "prepare-xwindow-id" message

 libcesarplayer/src/bacon-video-widget-gst-0.10.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/libcesarplayer/src/bacon-video-widget-gst-0.10.c b/libcesarplayer/src/bacon-video-widget-gst-0.10.c
index 7beb315..2d4b581 100644
--- a/libcesarplayer/src/bacon-video-widget-gst-0.10.c
+++ b/libcesarplayer/src/bacon-video-widget-gst-0.10.c
@@ -707,18 +707,6 @@ bacon_video_widget_expose_event (GtkWidget * widget, GdkEventExpose * event)
   g_mutex_unlock (bvw->priv->lock);
 
 
-  if (xoverlay != NULL && GST_IS_X_OVERLAY (xoverlay))
-    {
-#ifdef WIN32
-      gst_x_overlay_set_xwindow_id (bvw->priv->xoverlay,
-				    GDK_WINDOW_HWND (bvw->priv->
-						     video_window));
-#else
-      gst_x_overlay_set_xwindow_id (bvw->priv->xoverlay,
-				    GDK_WINDOW_XID (bvw->priv->video_window));
-#endif
-    }
-
   /* Start with a nice black canvas */
   win = gtk_widget_get_window (widget);
   gdk_draw_rectangle (win, gtk_widget_get_style (widget)->black_gc, TRUE, 0,



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