From ee4488fda2375d103fb72b0465753df3dc956fc1 Mon Sep 17 00:00:00 2001 From: Etoh Date: Thu, 6 Mar 2014 20:08:54 +0000 Subject: [PATCH] Fix MPC-HC file loading bug --- syncplay/players/mpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/players/mpc.py b/syncplay/players/mpc.py index 67cd026..c12a147 100644 --- a/syncplay/players/mpc.py +++ b/syncplay/players/mpc.py @@ -414,7 +414,7 @@ class MPCHCAPIPlayer(BasePlayer): @retry(MpcHcApi.PlayerNotReadyException, constants.MPC_MAX_RETRIES, constants.MPC_RETRY_WAIT_TIME, 1) def askForStatus(self): - if(self.__preventAsking.wait(0) and self.__fileUpdate.acquire(0) and self._mpcApi.filePlaying): + if(self._mpcApi.filePlaying and self.__preventAsking.wait(0) and self.__fileUpdate.acquire(0)): self.__fileUpdate.release() position = self.__getPosition() paused = self._mpcApi.isPaused()