diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-28 11:55:17 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-28 11:55:17 +0000 |
commit | d2a4ecd87009f2c301382847a9c7785467af6938 (patch) | |
tree | 9030304d76f00ea7423edadb2412fe17bad34383 /Gui/app.c | |
parent | 2eee0cefb01b149c86d2ca58df69c3f29c3af971 (diff) | |
download | mpv-d2a4ecd87009f2c301382847a9c7785467af6938.tar.bz2 mpv-d2a4ecd87009f2c301382847a9c7785467af6938.tar.xz |
fix text render chrash ...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6219 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/app.c')
-rw-r--r-- | Gui/app.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -97,21 +97,17 @@ int appFindMessage( unsigned char * str ) return -1; } -void appInit( int argc,char* argv[], char *envp[], void* disp ) +void appInit( void * disp ) { skinDirInHome=get_path("Skin"); skinMPlayerDir=DATADIR "/Skin"; printf("SKIN dir 1: '%s'\n",skinDirInHome); printf("SKIN dir 2: '%s'\n",skinMPlayerDir); - if ( !skinName ) - { - if ( ( skinName=(char *)calloc( 1,7 ) ) == NULL ) { mp_msg( MSGT_GPLAYER,MSGL_STATUS,"[config] Not enough memory.\n" ); exit( 1 ); } - strcpy( skinName,"default" ); - } + if ( !skinName ) skinName=strdup( "default" ); switch ( skinRead( skinName ) ) { case -1: mp_msg( MSGT_GPLAYER,MSGL_ERR,MSGTR_SKIN_SKINCFG_SkinNotFound,skinName ); exit( 0 ); case -2: mp_msg( MSGT_GPLAYER,MSGL_ERR,MSGTR_SKIN_SKINCFG_SkinCfgReadError,skinName ); exit( 0 ); } - mplInit( argc,argv,envp,disp ); // does gtk & ws initialization, create windows + mplInit( disp ); // does gtk & ws initialization, create windows } |