Video editing with Python
Fixed 'clip.preview()' crashing at exit when running inside Jupyter Notebook in Windows (#1537)
Victoria Cadogan2f7e4342cd24
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6f8389ed..83df18b4 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -48,6 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Fixed `Clip.cutout` transformation not being applied to audio [\#1468](https://github.com/Zulko/moviepy/pull/1468)- Fixed arguments inconsistency in `video.tools.drawing.color_gradient` [\#1467](https://github.com/Zulko/moviepy/pull/1467)- Fixed `fps` not defined in `CompositeAudioClip` at initialization [\#1462](https://github.com/Zulko/moviepy/pull/1462)+- Fixed `clip.preview()` crashing at exit when running inside Jupyter Notebook in Windows [\#1537](https://github.com/Zulko/moviepy/pull/1537)## [v2.0.0.dev2](https://github.com/zulko/moviepy/tree/v2.0.0.dev2) (2020-10-05)diff --git a/moviepy/video/io/preview.py b/moviepy/video/io/preview.pyindex f59be90e..0dee54fa 100644--- a/moviepy/video/io/preview.py+++ b/moviepy/video/io/preview.py@@ -143,6 +143,7 @@ def preview(if audio:video_flag.clear()print("Interrupt")+ pg.quit()return resultelif event.type == pg.MOUSEBUTTONDOWN:@@ -157,3 +158,5 @@ def preview(t1 = time.time()time.sleep(max(0, t - (t1 - t0)))imdisplay(img, screen)++ pg.quit()