mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
xvimagesink: don't paint the window black when going to NULL
Leave dealing with the appearance of the window when we are not playing to the applications. We anyway want to go to NULL as quickly as possible. Fixes #635800
This commit is contained in:
parent
5f61df82da
commit
38aba7853e
1 changed files with 3 additions and 10 deletions
|
@ -1085,13 +1085,6 @@ gst_xvimagesink_xwindow_clear (GstXvImageSink * xvimagesink,
|
|||
XvStopVideo (xvimagesink->xcontext->disp, xvimagesink->xcontext->xv_port_id,
|
||||
xwindow->win);
|
||||
|
||||
XSetForeground (xvimagesink->xcontext->disp, xwindow->gc,
|
||||
xvimagesink->xcontext->black);
|
||||
|
||||
XFillRectangle (xvimagesink->xcontext->disp, xwindow->win, xwindow->gc,
|
||||
xvimagesink->render_rect.x, xvimagesink->render_rect.y,
|
||||
xvimagesink->render_rect.w, xvimagesink->render_rect.h);
|
||||
|
||||
XSync (xvimagesink->xcontext->disp, FALSE);
|
||||
|
||||
g_mutex_unlock (xvimagesink->x_lock);
|
||||
|
|
Loading…
Reference in a new issue