sys/xvimage/xvimagesink.c: Discovered how to take away flickering while resizing...
authorJulien Moutte <julien@moutte.net>
Mon, 14 Nov 2005 22:01:22 +0000 (22:01 +0000)
committerJulien Moutte <julien@moutte.net>
Mon, 14 Nov 2005 22:01:22 +0000 (22:01 +0000)
Original commit message from CVS:
2005-11-14  Julien MOUTTE  <julien@moutte.net>

* sys/xvimage/xvimagesink.c: (gst_xvimagesink_xwindow_new):
Discovered how to take away flickering while resizing the
window. Please don't put that in ximagesink, refactoring in
progress.

ChangeLog
sys/xvimage/xvimagesink.c

index 217828cede2a6406be0c1897619a44ce4df25d83..936edd2526ed48cdb0cbeaec6a1c484d39df40e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-11-14  Julien MOUTTE  <julien@moutte.net>
+
+       * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xwindow_new):
+       Discovered how to take away flickering while resizing the
+       window. Please don't put that in ximagesink, refactoring in
+       progress.
+
 2005-11-14  Michael Smith <msmith@fluendo.com>
 
        * gst/tcp/gstmultifdsink.c: (gst_multifdsink_client_queue_data),
index 64406c8df2ce5ac5c202f12425521619cb579ca4..f7274e67a8e6f8d6d98bdba24fe1fbfa1ff94d20 100644 (file)
@@ -525,6 +525,10 @@ gst_xvimagesink_xwindow_new (GstXvImageSink * xvimagesink,
       0, 0, xwindow->width, xwindow->height,
       0, 0, xvimagesink->xcontext->black);
 
+  /* We have to do that to prevent X from redrawing the background on 
+   * ConfigureNotify. This takes away flickering of video when resizing. */
+  XSetWindowBackgroundPixmap (xvimagesink->xcontext->disp, xwindow->win, None);
+
   XSelectInput (xvimagesink->xcontext->disp, xwindow->win, ExposureMask |
       StructureNotifyMask | PointerMotionMask | KeyPressMask |
       KeyReleaseMask | ButtonPressMask | ButtonReleaseMask);