Skip to content

Commit 610ab6a

Browse files
author
ShresthSamyak
committed
fix(macos): fallback to standard wait if CoreFoundation fails
1 parent ddd0e20 commit 610ab6a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mpv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,8 +1084,9 @@ def _wait_for_future(self, result, timeout):
10841084
except ShutdownError:
10851085
raise
10861086
except Exception as e:
1087-
# Fallback if CoreFoundation loading fails
1087+
# Fallback if CoreFoundation loading fails: use standard waiting behavior
10881088
warn(f"Failed to load CoreFoundation for mpv macOS event loop: {e}", RuntimeWarning)
1089+
return result.result(timeout)
10891090

10901091
return result.result(0 if timeout is not None else None)
10911092
else:

0 commit comments

Comments
 (0)