[vlc-devel] commit: macosx: setting subsdec-encoding to an empty string is legal and the default value ( Felix Paul Kühne )

git version control git at videolan.org
Sun Jul 26 21:12:45 CEST 2009


vlc | branch: 1.0-bugfix | Felix Paul Kühne <fkuehne at videolan.org> | Sun Jul 26 21:02:38 2009 +0200| [acb8baa1e5e0d490353d92bbc1cf5902a3bdd792] | committer: Felix Paul Kühne 

macosx: setting subsdec-encoding to an empty string is legal and the default value

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

 modules/gui/macosx/simple_prefs.m |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index bbf4fc6..e5f16fb 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -987,9 +987,10 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
     if( b_osdSettingChanged )
     {
         config_PutInt( p_intf, "osd", [o_osd_osd_ckb state] );
-        SaveStringList( o_osd_encoding_pop, "subsdec-encoding" );
-//        if( [o_osd_encoding_pop indexOfSelectedItem] >= 0 )
-//            config_PutPsz( p_intf, "subsdec-encoding", [[[o_osd_encoding_pop selectedItem] title] UTF8String] );
+        if( [o_osd_encoding_pop indexOfSelectedItem] >= 0 )
+            SaveStringList( o_osd_encoding_pop, "subsdec-encoding" );
+        else
+            config_PutPsz( p_intf, "subsdec-encoding", "" );
 
         config_PutPsz( p_intf, "sub-language", [[o_osd_lang_fld stringValue] UTF8String] );
         




More information about the vlc-devel mailing list