fix: linux mpv dispose deadlock on wayland

This commit is contained in:
edde746
2026-02-19 21:50:29 +01:00
parent df09d2249d
commit 582809427e
3 changed files with 27 additions and 16 deletions
+3
View File
@@ -55,6 +55,9 @@ class MpvPlayer {
/// Returns true if mpv is initialized (has both mpv handle and render context).
bool IsInitialized() const { return mpv_ != nullptr && mpv_gl_ != nullptr; }
/// Returns true if this player has been disposed.
bool IsDisposed() const { return disposed_.load(); }
/// Returns true if mpv handle exists (even without render context).
bool HasMpvHandle() const { return mpv_ != nullptr; }