From b5c225382ef6e354dfda767cc2a0f2d20e65aa09 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 3 Sep 2020 15:44:35 +0200 Subject: encode: propagate errors to exit status properly Don't just let mpv CLI return 0 (success) as exit status if encoding failed somehow. --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/playloop.c') diff --git a/player/playloop.c b/player/playloop.c index e50aa944d1..ddd3f6dbdb 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -1182,7 +1182,7 @@ static void handle_eof(struct MPContext *mpctx) void run_playloop(struct MPContext *mpctx) { if (encode_lavc_didfail(mpctx->encode_lavc_ctx)) { - mpctx->stop_play = PT_QUIT; + mpctx->stop_play = PT_ERROR; return; } -- cgit v1.2.3