summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
Diffstat (limited to 'player')
-rw-r--r--player/loadfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 6ea4479d7a..b94ce8af43 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -1231,7 +1231,7 @@ terminate_playback:
MP_VERBOSE(mpctx, "finished playback, %s (reason %d)\n",
mpv_error_string(end_event.error), end_event.reason);
- if (mpctx->error_playing == MPV_ERROR_UNKNOWN_FORMAT)
+ if (end_event.error == MPV_ERROR_UNKNOWN_FORMAT)
MP_ERR(mpctx, "Failed to recognize file format.\n");
MP_INFO(mpctx, "\n");