[MPlayer-dev-eng] [PATCH] wid support with vo_sdl

Ricardo Salveti ricardo.salveti at openbossa.org
Tue Jun 24 09:36:39 CEST 2008


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.

Thanks a lot!

Regards,
-- 
Ricardo Salveti de Araujo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-vo_sdl-wid.patch
Type: text/x-patch
Size: 4007 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080624/63a1ec39/attachment.bin>


More information about the MPlayer-dev-eng mailing list