Escape \ in MPlayer openFile method (so it works on Windows)

This commit is contained in:
Etoh 2013-06-13 13:50:42 +02:00
parent 29f31b47e3
commit a58c946c4c

View File

@ -110,6 +110,7 @@ class MplayerPlayer(BasePlayer):
self._getProperty('time_pos')
def _quoteArg(self, arg):
arg = arg.replace('\\', '\\\\')
arg = arg.replace("'", "\\'")
arg = arg.replace('"', '\\"')
return '"{}"'.format(arg)