[gst-devel] glImagesink changing windows?

Filippo Argiolas filippo.argiolas at gmail.com
Sat May 30 10:03:47 CEST 2009


On Fri, May 29, 2009 at 6:09 PM, Levi Pope <levi.pope at gmail.com> wrote:
> I have an application that needs to change the window that the video is
> being displayed on using the glimagesink.
>
> The way I acomplish this with all of the other video sinks is I send a null
> to the xoverlay interface and then send
> the new window pointer once I create the new window. This works fine on
> xvimagesink, directdrawimagesink, and most others.

Do you send a NULL window with set_xwindow_id? Did you try to change
the window directly? IIRC glimagesink reparents its window into the
xoverlay one. If you send a null window it's likely that when you set
a new window it tries to reparent it to null. I'm not sure if this
reparenting thing is right, other sinks create a new context with the
new window. Anyway, if what I'm guessing is right, glimagesink should
at least check for the xid to be non null.

Filippo




More information about the gstreamer-devel mailing list