player: don't signal an error if --stream-dump is used
The player thinks an error happened because no audio or video was played after finishing the file, but this obviously makes no sense with stream dumping. (error_playing follows the client API convention that negative values are errors.)
This commit is contained in:
1 parent
18b15a436f
commit
47ec404a52
1 file changed
+1
@@ -967,6 +967,7 @@ static void play_current_file(struct MPContext *mpctx)
|
||||
|
||||
if (opts->stream_dump && opts->stream_dump[0]) {
|
||||
stream_dump(mpctx);
|
||||
mpctx->error_playing = 1;
|
||||
goto terminate_playback;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user