0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

this patch adds the option -guiwid to gmplayer. I think its a more clean

approach than using just wid.
Fabian Franz <FabianFranz@gmx.de>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9315 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-02-07 18:06:16 +00:00
parent 205fd981f3
commit fc52bafec0
3 changed files with 10 additions and 2 deletions

View File

@ -1454,6 +1454,10 @@ Places the window at the bottom left corner of the screen
.PD 1
.
.TP
.B \-guiwid <window\ id>
This tells the gui to also use a X11 window and stick itself to bottom of video, which is useful to embed an mini-GUI in a
browser (with the mplayerplug-in for instance).
.TP
.B \-hue <\-100\-100>
Adjust hue of video signal (default: 0).
You can get colored negative of image with this option.

View File

@ -40,6 +40,7 @@
#include "../libmpcodecs/dec_video.h"
guiInterface_t guiIntfStruct;
int guiWinID=-1;
char * gstrcat( char ** dest,char * src )
{
@ -197,10 +198,11 @@ void guiInit( void )
if (WinID>0)
{
appMPlayer.subWindow.Parent=WinID;
appMPlayer.mainWindow.Parent=WinID;
appMPlayer.sub.x=0;
appMPlayer.sub.y=0;
}
if (guiWinID>=0)
appMPlayer.mainWindow.Parent=guiWinID;
wsCreateWindow( &appMPlayer.subWindow,
appMPlayer.sub.x,appMPlayer.sub.y,appMPlayer.sub.width,appMPlayer.sub.height,
@ -517,7 +519,7 @@ int guiGetEvent( int type,char * arg )
}
guiIntfStruct.MovieWidth=vo_dwidth;
guiIntfStruct.MovieHeight=vo_dheight;
if (WinID>0)
if (guiWinID>=0)
wsMoveWindow( &appMPlayer.mainWindow,0,0, vo_dheight);
}
break;

View File

@ -107,6 +107,7 @@ extern int rtspStreamOverTCP;
#ifdef HAVE_NEW_GUI
extern char * skinName;
extern int enqueue;
extern int guiWinID;
#endif
#ifdef HAVE_ODIVX_POSTPROCESS
@ -398,6 +399,7 @@ static config_t mplayer_opts[]={
{"skin", &skinName, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
{"enqueue", &enqueue, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"noenqueue", &enqueue, CONF_TYPE_FLAG, 0, 0, 0, NULL},
{"guiwid", &guiWinID, CONF_TYPE_INT, 0, 0, 0, NULL},
#endif
{"noloop", &loop_times, CONF_TYPE_FLAG, 0, 0, -1, NULL},