diff options
author | wm4 <wm4@nowhere> | 2020-09-03 15:44:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-09-03 15:44:35 +0200 |
commit | b5c225382ef6e354dfda767cc2a0f2d20e65aa09 (patch) | |
tree | 739d968ad1f5ae20752a2f28c7f4c9a8e89fe4ff /player/playloop.c | |
parent | d3afe34c09df6850c4038ba8e7888a7a8cabbc90 (diff) | |
download | mpv-b5c225382ef6e354dfda767cc2a0f2d20e65aa09.tar.bz2 mpv-b5c225382ef6e354dfda767cc2a0f2d20e65aa09.tar.xz |
encode: propagate errors to exit status properly
Don't just let mpv CLI return 0 (success) as exit status if encoding
failed somehow.
Diffstat (limited to 'player/playloop.c')
-rw-r--r-- | player/playloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |