[vlc-commits] macosx/applescript: fix opening non-file URLs (close #10112)
Felix Paul Kühne
git at videolan.org
Thu Dec 26 18:45:28 CET 2013
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Dec 26 18:45:17 2013 +0100| [daa291c5d9dacbe9776cc05c55c91af870015dcc] | committer: Felix Paul Kühne
macosx/applescript: fix opening non-file URLs (close #10112)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=daa291c5d9dacbe9776cc05c55c91af870015dcc
---
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