[cheese/noflicker: 3/4] webcam: forward expose events to the xoverlay interface



commit f9befef668477764ce719ae00b42042c07cdb522
Author: Filippo Argiolas <filippo argiolas gmail com>
Date:   Sun May 24 12:45:27 2009 +0200

    webcam: forward expose events to the xoverlay interface
    
    No need to call set_xwindow_id on expose events while there is a proper
    method to forward expose events to the overlay.
---
 src/cheese-webcam.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/cheese-webcam.c b/src/cheese-webcam.c
index c948d22..7a938f2 100644
--- a/src/cheese-webcam.c
+++ b/src/cheese-webcam.c
@@ -189,7 +189,12 @@ cheese_webcam_change_sink (CheeseWebcam *webcam, GstElement *src,
 static gboolean
 cheese_webcam_expose_cb (GtkWidget *widget, GdkEventExpose *event, CheeseWebcam *webcam)
 {
-  cheese_webcam_set_x_overlay (webcam);
+  CheeseWebcamPrivate *priv = CHEESE_WEBCAM_GET_PRIVATE (webcam);
+
+  GstXOverlay *overlay = GST_X_OVERLAY (gst_bin_get_by_interface (GST_BIN (priv->pipeline),
+                                                                  GST_TYPE_X_OVERLAY));
+
+  gst_x_overlay_expose (overlay);
   return FALSE;
 }
 



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