add warning
This commit is contained in:
parent
9f6bc7b10b
commit
faa5d15e1e
1 changed files with 4 additions and 1 deletions
|
@ -85,7 +85,10 @@ public class Playbin : GLib.Object {
|
|||
|
||||
this.mpv.wakeup_callback = () => {
|
||||
Idle.add (() => {
|
||||
if (this.is_handling_event) return false;
|
||||
if (this.is_handling_event) {
|
||||
warning ("main thread mpv wakeup callback called twice");
|
||||
return false;
|
||||
}
|
||||
this.is_handling_event = true;
|
||||
|
||||
while (true) {
|
||||
|
|
Loading…
Reference in a new issue