[gst-devel] embedding sdlvideosink

Steve Baker steve at stevebaker.org
Wed Sep 25 17:14:10 CEST 2002


On Thu, 2002-09-26 at 01:22, David Schleef wrote:
> On Thu, Sep 26, 2002 at 12:05:06AM +0200, Ronald Bultje wrote:
> > Hi Steve,
> > 
> > On Wed, 2002-09-25 at 23:25, Steve Baker wrote:
> > > I haven't found a way to "get" the X window of an existing sdl display
> > > so I think the only way of knowing the xid of a sdl display is to create
> > > your own x window and tell sdl to use it with the setenv("SDL_WINDOWID",
> > > SDL_hack, 1); hacklet.
> 
> You should get the window ID as part of the SDL_SYSWMEVENT event.

Great, I'd rather do it this way than create my own window. However Xine
creates its own window so at least we know that method will work as a
fallback.

> > SDL always uses X, as far as I know...
> 
> SDL also works with the framebuffer and Windows, IIRC.

if GStreamer supports SDL+framebuffer then I should think carefully
about adding an X dependency to sdlvideosink.


cheers






More information about the gstreamer-devel mailing list