Pausing on video change is faster now

This commit is contained in:
Uriziel 2012-12-11 21:26:35 +01:00
parent 1a7691cdfb
commit d6adeba3d5
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,3 @@
version = '1.1.7'
version = '1.1.8'
milestone = 'Tequila'
projectURL = 'http://uriziel.github.com/syncplay/'

View File

@ -133,8 +133,10 @@ class MPCHCAPIPlayer(BasePlayer):
self.__forcePause(self.__client.getGlobalPaused())
self._mpcApi.seek(self.__client.getGlobalPosition())
if(self._mpcApi.isPaused() <> self.__client.getGlobalPaused()):
time.sleep(0.1)
self._mpcApi.playPause()
time.sleep(0.001)
self._mpcApi.playPause()
time.sleep(0.001)
if(self._mpcApi.isPaused() <> self.__client.getGlobalPaused()):
self.__setUpStateForNewlyOpenedFile()
except MpcHcApi.PlayerNotReadyException: