Properly wait for new event: set timeout -1.0 to wait infinitely
This commit is contained in:
parent
9bebd5b648
commit
bab000657b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue