Skip to content

Commit 3d67fb0

Browse files
committed
Prevent crash on launch during a backup.osp recovery
1 parent 2cc7040 commit 3d67fb0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/windows/preview_thread.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
"""
1+
"""
22
@file
33
@brief This file contains the preview thread, used for displaying previews of the timeline
44
@author Jonathan Thomas <[email protected]>
5-
5+
66
@section LICENSE
7-
7+
88
Copyright (c) 2008-2018 OpenShot Studios, LLC
99
(http://www.openshotstudios.com). This file is part of
1010
OpenShot Video Editor (http://www.openshot.org), an open-source project
1111
dedicated to delivering high quality video editing and animation solutions
1212
to the world.
13-
13+
1414
OpenShot Video Editor is free software: you can redistribute it and/or modify
1515
it under the terms of the GNU General Public License as published by
1616
the Free Software Foundation, either version 3 of the License, or
1717
(at your option) any later version.
18-
18+
1919
OpenShot Video Editor is distributed in the hope that it will be useful,
2020
but WITHOUT ANY WARRANTY; without even the implied warranty of
2121
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2222
GNU General Public License for more details.
23-
23+
2424
You should have received a copy of the GNU General Public License
2525
along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
2626
"""
@@ -334,5 +334,5 @@ def Speed(self, new_speed):
334334
""" Set the speed of the video player """
335335

336336
# Set speed
337-
if self.parent.initialized:
337+
if self.parent.initialized and self.player.Speed() != new_speed:
338338
self.player.Speed(new_speed)

0 commit comments

Comments
 (0)