[vlc-commits] macosx: fix drag & drop / double-clicks in Finder to open subtitles files (close #9953)

Felix Paul Kühne git at videolan.org
Sun Nov 24 20:57:20 CET 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Nov 24 20:56:36 2013 +0100| [2604049f04c78e0b586d04f780f01d728feb0618] | committer: Felix Paul Kühne

macosx: fix drag & drop / double-clicks in Finder to open subtitles files (close #9953)

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

 modules/gui/macosx/intf.m |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 4a5f732..0ec6de0 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -999,7 +999,7 @@ static VLCMain *_o_sharedMainInstance = nil;
 
 - (void)application:(NSApplication *)o_app openFiles:(NSArray *)o_names
 {
-    char *psz_uri = vlc_path2uri([[o_names objectAtIndex:0] UTF8String], "file");
+    char *psz_uri = vlc_path2uri([[o_names objectAtIndex:0] UTF8String], NULL);
 
     if (launched == NO) {
         if (items_at_launch) {
@@ -1017,7 +1017,7 @@ static VLCMain *_o_sharedMainInstance = nil;
         input_thread_t * p_input = pl_CurrentInput(VLCIntf);
         if (p_input) {
             BOOL b_returned = NO;
-            b_returned = input_AddSubtitle(p_input, psz_uri, true);
+            b_returned = input_AddSubtitle(p_input, [[o_names objectAtIndex:0] UTF8String], true);
             vlc_object_release(p_input);
             if (!b_returned) {
                 free(psz_uri);



More information about the vlc-commits mailing list