From 54cb27dc96237b58a713ca08b1687a056da00657 Mon Sep 17 00:00:00 2001 From: Et0h Date: Fri, 27 Mar 2015 16:31:20 +0000 Subject: [PATCH] Use global position when local position is unavailable from VLC --- syncplay/players/vlc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/players/vlc.py b/syncplay/players/vlc.py index ace2a47ac..29955d193 100644 --- a/syncplay/players/vlc.py +++ b/syncplay/players/vlc.py @@ -96,7 +96,7 @@ def askForStatus(self): def getCalculatedPosition(self): if self._lastVLCPositionUpdate is None: - return 0 + return self._client.getGlobalPosition() diff = time.time() - self._lastVLCPositionUpdate if diff > constants.PLAYER_ASK_DELAY and not self._paused: return self._position + diff