[gst-devel] stopping video sets the background to black -- can I change this color?

Erik Blankinship jedierikb at gmail.com
Mon Nov 1 02:43:13 CET 2010

On Sun, Oct 31, 2010 at 8:42 PM, Michael Smith <msmith at xiph.org> wrote:

> When the xvimagesink is in the null state, it's not doing anything. It
> doesn't even have a window to draw into.
> If it's black, that's coming from something else. You can draw into
> that something else using whatever API you're using for the rest of
> your application.
Hmm... I am pretty sure I am not painting any black by default, and I am
certainly not explicitly painting black.  I am displaying the video on[in?]
a gtk.DrawingArea.  It is grey by default.  ( It is a very similar set up to
this one: http://pygstdocs.berlios.de/pygst-tutorial/playbin.html ).

My pipeline listens for the "prepare-xwindow-id" message and once I play
some video and the message arrives I call message.src.set_window_id(
myGtkDrawingArea.window.xid ).  Once I have done this, my drawingArea
flashes from default grey to a black box for just a moment before my video
shows up.  When I stop the video I  get a black box in my drawing area.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101031/9b66a7a6/attachment.htm>

More information about the gstreamer-devel mailing list