Skip to content

Commit

Permalink
fix: show error if video stopped before init for non-live
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhd1701 committed Jul 1, 2022
1 parent c174be5 commit 8c33a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gridplayer/vlc_player/player_base.py
Expand Up @@ -127,7 +127,7 @@ def cb_paused(self, event):
self._log.debug("Media paused")

if not self.is_video_initialized:
if self.media_input.is_live or self._get_duration() == 0:
if self.media_input.is_live or self._get_duration() in {0, -1}:
# live video paused = something went wrong
# video with 0 duration = file is bad
self.error(
Expand Down

0 comments on commit 8c33a6f

Please sign in to comment.