Open dave12311 opened 3 years ago
Hey there,
I'm sorry for only seeing this just now, Thanks for noticing, this is indeed something that shouldn't happen, as it's so simple. If you want to, you can make a PR or I can make the fix, up to you : )
Cheers
If it's okay I'm gonna do the PR request. It's been a year since the issue opened.
Bug Description
Calling the
seek()
function while there is no file loaded causes uncaught UnhandledPromiseRejection exception.How To Reproduce
Create an mpv instance and call seek without loading a file first.
Expected behavior
Calling an invalid seek should reject the promise returned by the
seek()
functionSoftware Versions
Additional context
Quick fix with: