Skip to content

Commit

Permalink
do not crash on stop when video is unloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jabdoa2 committed May 16, 2017
1 parent 86ab2ef commit 17a7fe4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mpfmc/assets/video.py
Expand Up @@ -87,7 +87,8 @@ def play(self):
self._video.play()

def stop(self):
self._video.stop()
if self._video:
self._video.stop()

def pause(self):
self._video.pause()
Expand Down

0 comments on commit 17a7fe4

Please sign in to comment.