[MPlayer-users] Re: Using vo_x11 and -wid option fails with setting the Colormap
Koos Vriezen
koos.vriezen at xs4all.nl
Mon Dec 30 17:27:02 CET 2002
On Thu, 26 Dec 2002, Koos Vriezen wrote:
> Hi,
>
> I'm trying to get the x11 driver to work playing in a KDE/Qt window. It
> works with the xv driver, but the x11 driver fails bt:
To give some more info, it fails with a BadMatch. This patch makes it work
for me:
--- libvo/vo_x11.c.orig Thu Dec 26 18:18:31 2002
+++ libvo/vo_x11.c Thu Dec 26 19:58:49 2002
@@ -294,12 +294,12 @@
bg=WhitePixel( mDisplay,mScreen );
fg=BlackPixel( mDisplay,mScreen );
- theCmap=vo_x11_create_colormap(&vinfo);
+ //theCmap=vo_x11_create_colormap(&vinfo);
xswa.background_pixel=0;
xswa.border_pixel=0;
- xswa.colormap=theCmap;
- xswamask=CWBackPixel | CWBorderPixel | CWColormap;
+ //xswa.colormap=theCmap;
+ xswamask=CWBackPixel | CWBorderPixel;// | CWColormap;
#ifdef HAVE_XF86VM
if ( vm )
@@ -321,6 +321,9 @@
}
else
{
+ theCmap=vo_x11_create_colormap(&vinfo);
+ xswa.colormap=theCmap;
+ xswamask=CWBackPixel | CWBorderPixel | CWColormap;
if ( vo_window == None )
{
vo_window=XCreateWindow( mDisplay,mRootWin,
The application I use it for is at
http://www.xs4all.nl/~jjvrieze/kmplayer.html
Qt uses XCreateSimpleWindow for a non-top-level widget. I tried using
XCreateWindow instead, but that didn't help.
So, should the vo_x11 driver set the Colormap when running with -wid?
If so, what could I do to make it work for KMPlayer?
> Regards,
>
> Koos Vriezen
>
> (Please CC me)
>
>
More information about the MPlayer-users
mailing list