]> git.sesse.net Git - vlc/commitdiff
macosx: enable selection of subtitles named *.txt or *.smil through the Video menu
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 30 Jan 2011 16:12:26 +0000 (17:12 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 30 Jan 2011 16:12:26 +0000 (17:12 +0100)
modules/gui/macosx/controls.m

index cad72406ec443f82f6cf808d9196b1cf611a3e99..9396667ca884209e8a5f3e662143eaec2f86669c 100644 (file)
     [openPanel setCanChooseFiles: YES];
     [openPanel setCanChooseDirectories: NO];
     [openPanel setAllowsMultipleSelection: YES];
-    i_returnValue = [openPanel runModalForDirectory: [NSString stringWithUTF8String: path] file: nil types: [NSArray arrayWithObjects: @"cdg",@"@idx",@"srt",@"sub",@"utf",@"ass",@"ssa",@"aqt",@"jss",@"psb",@"rt",@"smi", nil]];
+    i_returnValue = [openPanel runModalForDirectory: [NSString stringWithUTF8String: path] file: nil types: [NSArray arrayWithObjects: @"cdg",@"@idx",@"srt",@"sub",@"utf",@"ass",@"ssa",@"aqt",@"jss",@"psb",@"rt",@"smi",@"txt",@"smil", nil]];
     free( path );
 
     if( i_returnValue == NSOKButton )