Skip to content

Commit

Permalink
Use global position when local position is unavailable from VLC
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h committed Mar 27, 2015
1 parent d9f10a5 commit 54cb27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncplay/players/vlc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54cb27d

Please sign in to comment.