[vlc-devel] commit: macosx: fixed subtitle encoding option ( Felix Paul Kühne )

git version control git at videolan.org
Sun Jul 26 18:03:50 CEST 2009


vlc | branch: 0.9-bugfix | Felix Paul Kühne <fkuehne at videolan.org> | Sun Jul 26 18:03:25 2009 +0200| [e0cd9f5e360720b0767cfa133028fc3236daf9c9] | committer: Felix Paul Kühne 

macosx: fixed subtitle encoding option

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0cd9f5e360720b0767cfa133028fc3236daf9c9
---

 NEWS                              |    2 +-
 modules/gui/macosx/simple_prefs.m |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/NEWS b/NEWS
index e494409..70d55f2 100644
--- a/NEWS
+++ b/NEWS
@@ -6,7 +6,7 @@ HTTP Interface:
 
 Mac OS X:
  * Fixed crashes on multi-screen setups
- * Corrected volume option in the Preferences
+ * Corrected volume and subtitle encoding options in the Preferences
  * Improved Information panel behavior, when playlist is not displayed
  * Fixed QTCapture input support for the latest iSight models
  * Added a menu-item to unlock the video window's aspect ratio
diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index d04baf5..72c806a 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -939,8 +939,7 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
     {
         config_PutInt( p_intf, "osd", [o_osd_osd_ckb state] );
 
-        if( [o_osd_encoding_pop indexOfSelectedItem] >= 0 )
-            config_PutPsz( p_intf, "subsdec-encoding", [[[o_osd_encoding_pop selectedItem] title] UTF8String] );
+        SaveStringList( o_osd_encoding_pop, "subsdec-encoding" );
 
         config_PutPsz( p_intf, "sub-language", [[o_osd_lang_fld stringValue] UTF8String] );
         config_PutPsz( p_intf, "quartztext-font", [[o_osd_font_fld stringValue] UTF8String] );




More information about the vlc-devel mailing list