mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
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:
parent
eac77914d3
commit
0a55772493
2 changed files with 11 additions and 0 deletions
|
@ -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>
|
2005-11-14 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
* gst/tcp/gstmultifdsink.c: (gst_multifdsink_client_queue_data),
|
* gst/tcp/gstmultifdsink.c: (gst_multifdsink_client_queue_data),
|
||||||
|
|
|
@ -525,6 +525,10 @@ gst_xvimagesink_xwindow_new (GstXvImageSink * xvimagesink,
|
||||||
0, 0, xwindow->width, xwindow->height,
|
0, 0, xwindow->width, xwindow->height,
|
||||||
0, 0, xvimagesink->xcontext->black);
|
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 |
|
XSelectInput (xvimagesink->xcontext->disp, xwindow->win, ExposureMask |
|
||||||
StructureNotifyMask | PointerMotionMask | KeyPressMask |
|
StructureNotifyMask | PointerMotionMask | KeyPressMask |
|
||||||
KeyReleaseMask | ButtonPressMask | ButtonReleaseMask);
|
KeyReleaseMask | ButtonPressMask | ButtonReleaseMask);
|
||||||
|
|
Loading…
Reference in a new issue