[vlc-commits] macosx/applescript: fix opening non-file URLs (close #10112)

Felix Paul Kühne git at videolan.org
Thu Dec 26 19:04:37 CET 2013


vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Dec 26 18:45:17 2013 +0100| [a74786b7f097492cabb2b75032fc19f901814ad5] | committer: Jean-Baptiste Kempf

macosx/applescript: fix opening non-file URLs (close #10112)

(cherry picked from commit daa291c5d9dacbe9776cc05c55c91af870015dcc)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/macosx/applescript.m |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/modules/gui/macosx/applescript.m b/modules/gui/macosx/applescript.m
index d570568..c97951a 100644
--- a/modules/gui/macosx/applescript.m
+++ b/modules/gui/macosx/applescript.m
@@ -57,15 +57,9 @@
                     return nil;
             }
 
-            char *psz_uri = vlc_path2uri([o_urlString UTF8String], NULL);
-            if (!psz_uri)
-                return nil;
-
             NSDictionary *o_dic;
             NSArray *o_array;
-            o_dic = [NSDictionary dictionaryWithObject:[NSString stringWithCString:psz_uri encoding:NSUTF8StringEncoding] forKey:@"ITEM_URL"];
-            free(psz_uri);
-
+            o_dic = [NSDictionary dictionaryWithObject:o_urlString forKey:@"ITEM_URL"];
             o_array = [NSArray arrayWithObject: o_dic];
 
             if (b_autoplay)



More information about the vlc-commits mailing list