gridplayer
gridplayer copied to clipboard
[Bug]: Crash when video in playlist doesn't have a "loop_end" value
GridPlayer version
0.4.3
What OS are you using?
Windows
OS Version / Linux distribution
Windows 10
What distribution channel are you using? [LINUX ONLY]
No response
Bug description
If we open a video and set the start of the loop but don't set the end point and then we save the playlist, the next time we open said playlist the app will crash with:
Traceback (most recent call last):
File "gridplayer\widgets\video_block.py", line 736, in load_video_finish
File "gridplayer\widgets\video_block.py", line 775, in set_loop_end_time
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
Adding a simple check if self.video_params.loop_end is not None:
at ...\gridplayer\widgets\video_block.py#L775 fixed this
Log excerpt
No response