From ddcaf8c53ceb8327cf3bbff3d6cd4e22e7b8bf43 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Mon, 24 Jun 2013 21:55:01 +0200 Subject: [PATCH] Fix for Widnows' youtube support in mpv --- syncplay/players/mplayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/players/mplayer.py b/syncplay/players/mplayer.py index 1d72f1b..a164f5e 100644 --- a/syncplay/players/mplayer.py +++ b/syncplay/players/mplayer.py @@ -192,7 +192,7 @@ class MplayerPlayer(BasePlayer): call.extend(playerController.SLAVE_ARGS) if(args): call.extend(args) - self.__process = subprocess.Popen(call, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) + self.__process = subprocess.Popen(call, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE, cwd = os.path.dirname(playerPath)) threading.Thread.__init__(self, name="MPlayer Listener") def run(self):