summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-18 12:56:22 +0200
committerwm4 <wm4@nowhere>2013-05-18 17:45:55 +0200
commit58cc0f637f13d2eeeeb3c24aed4b72fc02a4cbc7 (patch)
treebd7d8844a73d647902b72b5a1c2fd5a998e9617d /osdep
parent3e6ec6dfa551740c4d52ede83a0cacba3ab59532 (diff)
downloadmpv-58cc0f637f13d2eeeeb3c24aed4b72fc02a4cbc7.tar.bz2
mpv-58cc0f637f13d2eeeeb3c24aed4b72fc02a4cbc7.tar.xz
input: do property expansion for all input command string arguments
Also add a "raw" prefix for commands, which prevents property expansion. The idea is that if the commands are generated by a program, it doesn't have to know whether the command expands properties or not.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/macosx_application.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m
index 77c51a5180..7242403bc5 100644
--- a/osdep/macosx_application.m
+++ b/osdep/macosx_application.m
@@ -206,7 +206,7 @@ static pthread_t playback_thread_id;
[self.files enumerateObjectsUsingBlock:^(id obj, NSUInteger i, BOOL *_){
const char *file = [escape_loadfile_name(obj) UTF8String];
const char *append = (i == 0) ? "" : " append";
- char *cmd = talloc_asprintf(ctx, "loadfile \"%s\"%s", file, append);
+ char *cmd = talloc_asprintf(ctx, "raw loadfile \"%s\"%s", file, append);
mp_cmd_t *cmdt = mp_input_parse_cmd(bstr0(cmd), "");
mp_input_queue_cmd(self.inputContext, cmdt);
}];