sys/xvimage/xvimagesink.c: Discovered how to take away flickering while resizing the window. Please don't put that in...

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.
This commit is contained in:
Julien Moutte 2005-11-14 22:01:22 +00:00
parent eac77914d3
commit 0a55772493
2 changed files with 11 additions and 0 deletions

View file

@ -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),

View 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);