1
mirror of https://github.com/mpv-player/mpv synced 2025-01-01 04:36:24 +01:00

MPlayer crash when using -wid and -vo x11 parameters.

I don't understand very well why my fix works.
Jouni Tulkki <jitulkki@cc.hut.fi>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9116 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-01-26 22:24:17 +00:00
parent 461871fc5b
commit 1bf956391f

View File

@ -298,8 +298,7 @@ static uint32_t config( uint32_t width,uint32_t height,uint32_t d_width,uint32_t
xswa.background_pixel=0;
xswa.border_pixel=0;
xswa.colormap=theCmap;
xswamask=CWBackPixel | CWBorderPixel | CWColormap;
xswamask=CWBackPixel | CWBorderPixel;
#ifdef HAVE_XF86VM
if ( vm )
@ -323,6 +322,8 @@ static uint32_t config( uint32_t width,uint32_t height,uint32_t d_width,uint32_t
{
if ( vo_window == None )
{
xswa.colormap=theCmap;
xswamask|=CWColormap;
vo_window=XCreateWindow( mDisplay,mRootWin,
vo_dx,vo_dy,
vo_dwidth,vo_dheight,