[xvimagesink] Call XSetForground()/XFillRectangle() API when user set visible propert...
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 7 May 2013 09:01:43 +0000 (18:01 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 7 May 2013 09:28:58 +0000 (18:28 +0900)
Change-Id: Ia18ad81d828bd3dee419f557f8864b9811e47cac

packaging/gst-plugins-base.spec
sys/xvimage/xvimagesink.c

index c5616a9..fa90e55 100644 (file)
@@ -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
index 9cbb0bc..2b73a88 100644 (file)
@@ -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 );
         }