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 cad7240..9396667 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 )