mpv: Use core-idle property instead of paused-for-cache

This commit is contained in:
nemunaire 2024-10-01 19:32:42 +02:00
parent 762d4a5b9c
commit 1ae02a7d47

View File

@ -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