summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/client.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/player/client.c b/player/client.c
index bc9785d04c..44ec7fad8c 100644
--- a/player/client.c
+++ b/player/client.c
@@ -126,7 +126,6 @@ struct mpv_handle {
uint64_t event_mask;
bool queued_wakeup;
- int suspend_count;
mpv_event *events; // ringbuffer of max_events entries
int max_events; // allocated number of entries in events
@@ -831,11 +830,6 @@ mpv_event *mpv_wait_event(mpv_handle *ctx, double timeout)
event->event_id = MPV_EVENT_QUEUE_OVERFLOW;
break;
}
- // This will almost surely lead to a deadlock. (Polling is still ok.)
- if (ctx->suspend_count && timeout > 0) {
- MP_ERR(ctx, "attempting to wait while core is suspended");
- break;
- }
if (ctx->num_events) {
*event = ctx->events[ctx->first_event];
ctx->first_event = (ctx->first_event + 1) % ctx->max_events;