mpv_thumbnail_script
mpv_thumbnail_script copied to clipboard
Guard against nil properties, ensure that worker messages are for the current video, update osc
Should be a more complete fix for the race condition issues in #54.
This seems much more stable than any previous attempt. I did have one time where the OSC went away, but I wasn't connected to a terminal at the time so I couldn't get a traceback or anything. But this PR definitely improves the situation significantly, and I've noticed no problems with it, so I recommend merging.
No more OSC crashes with these changes.