Skip to content

Commit

Permalink
fix: prevent video from double initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhd1701 committed Jul 17, 2022
1 parent f347ac0 commit 0e7824d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gridplayer/vlc_player/player_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def cb_parse_changed(self, event):
else:
return self.error(translate("Video Error", "Media parse failed"))

self.loopback_load_video_st2_set_media()
if self.is_preparse_required:
self.loopback_load_video_st2_set_media()

def cb_time_changed(self, event):
# Doesn't work anymore since python-vlc-3.0.12117
Expand Down

0 comments on commit 0e7824d

Please sign in to comment.