diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-21 19:12:46 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-21 19:12:46 +0000 |
commit | ebdb38271ec4b4045c4e3db4408489a52729d050 (patch) | |
tree | c2b197cbd5fb82bac5a95fcab7f6b9f36b1c9974 /Gui/interface.c | |
parent | 337542a33163ccb9d836219f8ed202db65401efd (diff) | |
download | mpv-ebdb38271ec4b4045c4e3db4408489a52729d050.tar.bz2 mpv-ebdb38271ec4b4045c4e3db4408489a52729d050.tar.xz |
- add subcp
- fix some 10l in gui
- fix one 10l bug in subreader
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9057 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/interface.c')
-rw-r--r-- | Gui/interface.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Gui/interface.c b/Gui/interface.c index f757a5cc01..a1c762955d 100644 --- a/Gui/interface.c +++ b/Gui/interface.c @@ -386,6 +386,7 @@ void guiLoadSubtitle( char * name ) mp_msg( MSGT_GPLAYER,MSGL_INFO,"[gui] Delete Load subtitle: %s\n",name ); sub_name=gstrdup( name ); subtitles=sub_read_file( sub_name,guiIntfStruct.FPS ); + if ( !subtitles ) mp_msg( MSGT_GPLAYER,MSGL_ERR,MSGTR_CantLoadSub,name ); } } #endif @@ -862,7 +863,6 @@ void * gtkSet( int cmd,float fparam, void * vparam ) } else { url_item->next=NULL; URLList=url_item; } return NULL; // --- subtitle -#if defined( USE_OSD ) || defined( USE_SUB ) #ifndef HAVE_FREETYPE case gtkSetFontFactor: font_factor=fparam; @@ -886,7 +886,7 @@ void * gtkSet( int cmd,float fparam, void * vparam ) guiLoadFont(); return NULL; case gtkSetFontEncoding: - if ( subtitle_font_encoding ) free( subtitle_font_encoding ); + gfree( (void **)&subtitle_font_encoding ); subtitle_font_encoding=gstrdup( (char *)vparam ); guiLoadFont(); return NULL; @@ -895,6 +895,11 @@ void * gtkSet( int cmd,float fparam, void * vparam ) guiLoadFont(); return NULL; #endif +#ifdef USE_ICONV + case gtkSetSubEncoding: + gfree( (void **)&sub_cp ); + sub_cp=gstrdup( (char *)vparam ); + break; #endif // --- misc case gtkClearStruct: |