diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-05-28 21:39:56 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-05-30 23:01:12 +0200 |
commit | 3396e0565b39c5168777b78cc26ed3b985a81071 (patch) | |
tree | 2fe24dee44b92e0011ffd1a42e0dfd199160f1a6 /video/out | |
parent | 14ff6bbf7c69f1ba4c657754ce53a681c90d13c5 (diff) | |
download | mpv-3396e0565b39c5168777b78cc26ed3b985a81071.tar.bz2 mpv-3396e0565b39c5168777b78cc26ed3b985a81071.tar.xz |
macosx_application: move escape_loadfile_name in this file
This allows to move back osx_common to raw C.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/osx_common.c (renamed from video/out/osx_common.m) | 21 | ||||
-rw-r--r-- | video/out/osx_common.h | 3 |
2 files changed, 0 insertions, 24 deletions
diff --git a/video/out/osx_common.m b/video/out/osx_common.c index 5b5e4fbd8f..0221501a5d 100644 --- a/video/out/osx_common.m +++ b/video/out/osx_common.c @@ -114,24 +114,3 @@ int convert_key(unsigned key, unsigned charcode) return mpkey; return charcode; } - -struct escape_couple { - NSString *in; - NSString *out; -}; - -static struct escape_couple escapes[] = { - { @"\\", @"\\\\" }, - { @"\"", @"\\\"" }, - { NULL, NULL } -}; - -NSString *escape_loadfile_name(NSString *input) -{ - for (int i = 0; escapes[i].out; i++) { - input = [input stringByReplacingOccurrencesOfString:escapes[i].in - withString:escapes[i].out]; - } - - return input; -} diff --git a/video/out/osx_common.h b/video/out/osx_common.h index 32bba12d21..3c4855fde3 100644 --- a/video/out/osx_common.h +++ b/video/out/osx_common.h @@ -19,9 +19,6 @@ #ifndef MPLAYER_OSX_COMMON_H #define MPLAYER_OSX_COMMON_H -struct vo; - int convert_key(unsigned key, unsigned charcode); -NSString *escape_loadfile_name(NSString *input); #endif /* MPLAYER_OSX_COMMON_H */ |