gridplayer icon indicating copy to clipboard operation
gridplayer copied to clipboard

[Bug]: Crash when video in playlist doesn't have a "loop_end" value

Open 1024mb opened this issue 2 years ago • 0 comments

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

1024mb avatar Jul 30 '22 22:07 1024mb