Merge pull request #1333 from kelciour/mpv-property-list-timeout
A possible fix for "mpv timed out, restarting"
This commit is contained in:
commit
79fbf9ad3e
@ -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}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user