From 500ce4e62fdb0a7420d6f90db59ff6e6b857b9e3 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Tue, 7 May 2013 18:01:43 +0900 Subject: [PATCH] [xvimagesink] Call XSetForground()/XFillRectangle() API when user set visible property FALSE Change-Id: Ia18ad81d828bd3dee419f557f8864b9811e47cac --- packaging/gst-plugins-base.spec | 2 +- sys/xvimage/xvimagesink.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packaging/gst-plugins-base.spec b/packaging/gst-plugins-base.spec index c5616a9..fa90e55 100644 --- a/packaging/gst-plugins-base.spec +++ b/packaging/gst-plugins-base.spec @@ -1,7 +1,7 @@ Name: gst-plugins-base Summary: GStreamer streaming media framework base plug-ins Version: 0.10.36 -Release: 23 +Release: 24 Group: Applications/Multimedia License: LGPLv2+ Source0: %{name}-%{version}.tar.gz diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 9cbb0bc..2b73a88 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -4887,6 +4887,14 @@ gst_xvimagesink_set_property (GObject * object, guint prop_id, atom_stream, 0 ) != Success) { GST_WARNING_OBJECT( xvimagesink, "Set visible FALSE failed" ); } + if ( !xvimagesink->get_pixmap_cb ) { + XSetForeground (xvimagesink->xcontext->disp, xvimagesink->xwindow->gc, + xvimagesink->xcontext->black); + + XFillRectangle (xvimagesink->xcontext->disp, xvimagesink->xwindow->win, xvimagesink->xwindow->gc, + xvimagesink->render_rect.x, xvimagesink->render_rect.y, + xvimagesink->render_rect.w, xvimagesink->render_rect.h); + } XSync( xvimagesink->xcontext->disp, FALSE ); } -- 2.7.4