From faa5d15e1e9e347ef69ba894818893be53c1170f Mon Sep 17 00:00:00 2001 From: Erica Z Date: Sat, 26 Oct 2024 09:11:58 +0200 Subject: [PATCH] add warning --- src/playbin.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/playbin.vala b/src/playbin.vala index afb1e87..c0fc546 100644 --- a/src/playbin.vala +++ b/src/playbin.vala @@ -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) {