[MPlayer-dev-eng] [PATCH] wid support with vo_sdl
Aurelien Jacobs
aurel at gnuage.org
Tue Jun 24 13:20:03 CEST 2008
Ricardo Salveti wrote:
> Hi all,
>
> I was using mplayer inside another application and wanted to use it
> with sdl, but the vo_sdl doesn't support the '-wid' option. To solve
> this problem I created this patch, based on vo_x11 and vo_xv.
>
> Basically you have to export "SDL_WINDOWID" before initializing the
> SDL engine, and after setting everything up you just get the window
> width and height and set the video size.
>
> When using SDL with window id, the events will go to the X window, so
> we need to check the resize event to set the new video size.
>
> Please take a look at the code, this is my first patch to mplayer, so
> I don't know if I did everything right.
It won't compile when HAVE_X11 is not defined.
Aurel
More information about the MPlayer-dev-eng
mailing list