Properly wait for new event: set timeout -1.0 to wait infinitely

This commit is contained in:
Ryze 2023-02-24 17:57:24 +03:00
parent 9bebd5b648
commit bab000657b
Signed by: ryze
GPG key ID: 9B296C5CEAEAAAC1

View file

@ -41,7 +41,7 @@ impl MpvEventQueue {
}
pub fn next_event(&mut self) -> Option<MpvEvent> {
let event = self.mpv.wait_event(0.0);
let event = self.mpv.wait_event(-1.0);
let mpv_event = self.convert_event(event);
mpv_event
}