Commit daa291c5 authored by Felix Paul Kühne's avatar Felix Paul Kühne

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

parent 264f837c
...@@ -57,15 +57,9 @@ ...@@ -57,15 +57,9 @@
return nil; return nil;
} }
char *psz_uri = vlc_path2uri([o_urlString UTF8String], NULL);
if (!psz_uri)
return nil;
NSDictionary *o_dic; NSDictionary *o_dic;
NSArray *o_array; NSArray *o_array;
o_dic = [NSDictionary dictionaryWithObject:[NSString stringWithCString:psz_uri encoding:NSUTF8StringEncoding] forKey:@"ITEM_URL"]; o_dic = [NSDictionary dictionaryWithObject:o_urlString forKey:@"ITEM_URL"];
free(psz_uri);
o_array = [NSArray arrayWithObject: o_dic]; o_array = [NSArray arrayWithObject: o_dic];
if (b_autoplay) if (b_autoplay)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment