Commit 51c358f0 authored by Tijder's avatar Tijder

Fix crash when latest timeline update failed

parent 49b8eb46
Pipeline #147767 passed with stage
in 8 minutes and 11 seconds
......@@ -154,7 +154,10 @@ class Player(GObject.Object):
self._player.command('stop')
def __stop(self):
self._item.updateTimeline(self._progresUpdate * 1000, state='stopped', duration=self._item_loading.duration, playQueueItemID=self._item.playQueueItemID)
try:
self._item.updateTimeline(self._progresUpdate * 1000, state='stopped', duration=self._item_loading.duration, playQueueItemID=self._item.playQueueItemID)
except:
print("Error by updating timeline")
self._player.terminate()
def set_playqueue(self, playqueue):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment