Merge pull request #1333 from kelciour/mpv-property-list-timeout

A possible fix for "mpv timed out, restarting"
This commit is contained in:
Damien Elmes 2021-08-18 16:39:50 +10:00 committed by GitHub
commit 79fbf9ad3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -554,7 +554,7 @@ class MPV(MPVBase):
# XXX We manually have to check for the existence of the property name.
# Apparently observe_property does not check it :-(
proplist = self.command("get_property", "property-list")
proplist = self.command("get_property", "property-list", timeout=5)
if name not in proplist:
raise MPVError(f"no such property {name!r}")