From 0de9256384ab78712328f842af29128903e34d71 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 21 Sep 2022 17:25:50 +0800 Subject: [PATCH] bugfix --- kivyblocks/ffpyplayer_video.py | 2 ++ kivyblocks/version.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kivyblocks/ffpyplayer_video.py b/kivyblocks/ffpyplayer_video.py index 358b67b..44e073b 100644 --- a/kivyblocks/ffpyplayer_video.py +++ b/kivyblocks/ffpyplayer_video.py @@ -340,6 +340,8 @@ class FFVideo(WidgetReady, Image): if self._update_task: self._update_task.cancel() self._update_task = None + if self._player is None: + return frame, val = self._player.get_frame() if val == 'eof': self.status = 'stop' diff --git a/kivyblocks/version.py b/kivyblocks/version.py index 2bbd998..d5e8b45 100644 --- a/kivyblocks/version.py +++ b/kivyblocks/version.py @@ -1 +1 @@ -__version__ = '0.3.18' +__version__ = '0.3.19'