Autopause on play fix

Time after time when playing large files the setting "pause_onplay" didn't
actually pause the playback on start.
pull/15/head
Sergey Kolosovskiy 2016-11-29 21:41:30 +02:00
parent 317f64c2f8
commit 329dac9c32
1 changed files with 1 additions and 1 deletions

View File

@ -541,7 +541,7 @@ class InposPlayer(xbmc.Player):
self.iterator = int(file_status.progress * 100) self.iterator = int(file_status.progress * 100)
if pause and self.__settings__.getSetting("pause_onplay") == 'true': if pause and (self.__settings__.getSetting("pause_onplay") == 'true') and (self.getTime() > 0):
pause = False pause = False
xbmc.Player().pause() xbmc.Player().pause()
xbmc.sleep(1000) xbmc.sleep(1000)