From b2073d08b0913aa7eaa4c2e6c59e880104b3c346 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 9 Mar 2018 04:07:34 +0100 Subject: player: shuffle around CLI exit code handling Remove the weird prepare_exit_cplayer() function, and fold the contents into mpv_main() and mp_initialize(). --- player/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/client.c') diff --git a/player/client.c b/player/client.c index a8b90082cc..21c6807ad3 100644 --- a/player/client.c +++ b/player/client.c @@ -543,7 +543,7 @@ int mpv_initialize(mpv_handle *ctx) int res = 0; void *args[2] = {ctx->mpctx, &res}; mp_dispatch_run(ctx->mpctx->dispatch, doinit, args); - return res < 0 ? MPV_ERROR_INVALID_PARAMETER : 0; + return res == 0 ? 0 : MPV_ERROR_INVALID_PARAMETER; } // set ev->data to a new copy of the original data -- cgit v1.2.3