mirror of
https://github.com/mpv-player/mpv
synced 2025-04-07 01:53:06 +00:00
commented
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1697 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c86440962c
commit
311cd09ea2
14
Gui/app.c
14
Gui/app.c
@ -107,18 +107,18 @@ void appInit( int argc,char* argv[], char *envp[] )
|
|||||||
if ( ( skinMPlayerDir=(char *)calloc( 1,strlen( appMPlayerDir ) + 5 ) ) != NULL )
|
if ( ( skinMPlayerDir=(char *)calloc( 1,strlen( appMPlayerDir ) + 5 ) ) != NULL )
|
||||||
{ strcpy( skinMPlayerDir,appMPlayerDir ); strcat( skinMPlayerDir,"/Skin" ); }
|
{ strcpy( skinMPlayerDir,appMPlayerDir ); strcat( skinMPlayerDir,"/Skin" ); }
|
||||||
|
|
||||||
initDebug(NULL);
|
initDebug(NULL); // write messages to stderr
|
||||||
|
|
||||||
cfgDefaults();
|
cfgDefaults(); // set skin to "default"
|
||||||
cfgRead();
|
cfgRead(); // empty function - NOP
|
||||||
if ( !strcmp( cfgAppName,"movieplayer" ) )
|
// if ( !strcmp( cfgAppName,"movieplayer" ) )
|
||||||
{
|
// {
|
||||||
appMPlayer.sub.x=-1; appMPlayer.sub.y=-1; appMPlayer.sub.width=512; appMPlayer.sub.height=256;
|
appMPlayer.sub.x=-1; appMPlayer.sub.y=-1; appMPlayer.sub.width=512; appMPlayer.sub.height=256;
|
||||||
switch ( skinRead( cfgSkin ) )
|
switch ( skinRead( cfgSkin ) )
|
||||||
{
|
{
|
||||||
case -1: dbprintf( 0,"[app] skin configfile not found.\n" ); exit( 0 );
|
case -1: dbprintf( 0,"[app] skin configfile not found.\n" ); exit( 0 );
|
||||||
case -2: dbprintf( 0,"[app] skin configfile read error.\n" ); exit( 0 );
|
case -2: dbprintf( 0,"[app] skin configfile read error.\n" ); exit( 0 );
|
||||||
}
|
}
|
||||||
mplInit( argc,argv,envp );
|
mplInit( argc,argv,envp ); // does gtk & ws initialization, create windows
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user