mpv: Use core-idle property instead of paused-for-cache
This commit is contained in:
parent
762d4a5b9c
commit
1ae02a7d47
1 changed files with 2 additions and 3 deletions
|
@ -124,10 +124,9 @@ func (s *MPVSource) Enable() (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var pfc interface{}
|
var pfc interface{}
|
||||||
pfc, err = conn.Get("paused-for-cache")
|
for err == nil && pfc.(bool) {
|
||||||
for err == nil && !pfc.(bool) {
|
|
||||||
time.Sleep(250 * time.Millisecond)
|
time.Sleep(250 * time.Millisecond)
|
||||||
pfc, err = conn.Get("paused-for-cache")
|
pfc, err = conn.Get("core-idle")
|
||||||
}
|
}
|
||||||
err = nil
|
err = nil
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue