add warning

This commit is contained in:
Erica Z 2024-10-26 09:11:58 +02:00
parent 9f6bc7b10b
commit faa5d15e1e

View file

@ -85,7 +85,10 @@ public class Playbin : GLib.Object {
this.mpv.wakeup_callback = () => { this.mpv.wakeup_callback = () => {
Idle.add (() => { 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; this.is_handling_event = true;
while (true) { while (true) {