Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Duration may be nil when decoder has been uninited
This fixes this error that gets logged every time a video finishes playing: ``` ... [vd] Uninit decoder. [client_osc] [client_osc] stack traceback: [client_osc] mp.defaults:366: in function 'handler' [client_osc] mp.defaults:460: in function 'call_event_handlers' [client_osc] mp.defaults:494: in function 'dispatch_events' [client_osc] mp.defaults:453: in function <mp.defaults:452> [client_osc] [C]: at 0x5745da2c25d0 [client_osc] [C]: at 0x5745da2c38d0 [client_osc] Lua error: ...jmrbar-mpv_thumbnail_script-0.4.2/scripts/client_osc.lua:1087: attempt to compare nil with number ... ```
- Loading branch information