From 13dff3073d85a4288ee317680fc44b9dc4ca096d Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 17 Dec 2019 23:11:15 +0100 Subject: client API: remove some dead code This was for the "suspend" API, which has been removed (turned into stubs) a long time ago. --- player/client.c | 6 ------ 1 file changed, 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; -- cgit v1.2.3