Commit e0225de
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
...
```1 parent d31228f commit e0225de
File tree
1 file changed
+1
-1
lines changed- src
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
0 commit comments