From d67bc227b4a5e403bc05610f33462b9500fea6d1 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 23 Nov 2020 20:46:06 +0800 Subject: [PATCH] bugfix --- kivyblocks/newvideo.py | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/kivyblocks/newvideo.py b/kivyblocks/newvideo.py index d3dcfc6..f439105 100644 --- a/kivyblocks/newvideo.py +++ b/kivyblocks/newvideo.py @@ -55,36 +55,8 @@ class NewVideo(BGColorBehavior, Video): # try to fix up the error def unload(self,try_cnt=0): """ - Traceback (most recent call last): - File "main.py", line 288, in - myapp.run() - File "C:\Python37\lib\site-packages\kivy\app.py", line 855, in run - runTouchApp() - File "C:\Python37\lib\site-packages\kivy\base.py", line 504, in runTouchApp - EventLoop.window.mainloop() - File "C:\Python37\lib\site-packages\kivy\core\window\window_sdl2.py", line 747, in mainloop - self._mainloop() - File "C:\Python37\lib\site-packages\kivy\core\window\window_sdl2.py", line 479, in _mainloop - EventLoop.idle() - File "C:\Python37\lib\site-packages\kivy\base.py", line 348, in idle - Clock.tick_draw() - File "C:\Python37\lib\site-packages\kivy\clock.py", line 598, in tick_draw - self._process_events_before_frame() - File "kivy\_clock.pyx", line 427, in kivy._clock.CyClockBase._process_events_before_frame - File "kivy\_clock.pyx", line 467, in kivy._clock.CyClockBase._process_events_before_frame - File "kivy\_clock.pyx", line 465, in kivy._clock.CyClockBase._process_events_before_frame - File "kivy\_clock.pyx", line 167, in kivy._clock.ClockEvent.tick - File "C:\Python37\lib\site-packages\kivy\uix\video.py", line 174, in _do_video_load - self.unload() - File "C:\Python37\lib\site-packages\kivy\uix\video.py", line 240, in unload - self._video.stop() - File "C:\Python37\lib\site-packages\kivy\core\video\video_ffpyplayer.py", line 325, in stop - self.unload() - File "C:\Python37\lib\site-packages\kivy\core\video\video_ffpyplayer.py", line 366, in unload - self._thread.join() - File "C:\Python37\lib\threading.py", line 1039, in join - raise RuntimeError("cannot join thread before it is started") - RuntimeError: cannot join thread before it is started + File "C:\Python37\lib\threading.py", line 1039, in join + RuntimeError: cannot join thread before it is started """ try: super().unload()