Fix system player stopping instead of pausing when asked to paused

This commit is contained in:
Jonathan Springer 2017-05-29 12:16:20 -04:00
parent 533bef159a
commit 762b9fba4e
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ class SystemPlayer(MediaPlayer):
:param display: The display where the media is
"""
if display.media_player.state() == QtMultimedia.QMediaPlayer.PausedState and self.state != MediaState.Paused:
self.stop(display)
self.pause(display)
controller = display.controller
if controller.media_info.end_time > 0:
if display.media_player.position() > controller.media_info.end_time: