summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-10 14:51:52 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-10 15:34:16 +0200
commit2dca4577bb81a845a992a4ad4764835d0868a068 (patch)
treea81545db1eb8143487cc931db9218f02269b04c4 /mplayer.c
parentb98821de7cd341ee30ba228e6be1934e0ad882c2 (diff)
downloadmpv-2dca4577bb81a845a992a4ad4764835d0868a068.tar.bz2
mpv-2dca4577bb81a845a992a4ad4764835d0868a068.tar.xz
core: print an explicit error if file format detection fails
When file format detection failed the output only said "Exiting... (End of file)" after "Playing <file>." (or possibly error messages triggered by format-specific check functions in between). Add an explicit "Failed to recognize file format." error message.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index b061680012..a27bdfaac7 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -3836,8 +3836,10 @@ if (mpctx->demuxer && mpctx->demuxer->type==DEMUXER_TYPE_PLAYLIST)
}
}
-if(!mpctx->demuxer)
- goto goto_next_file;
+ if(!mpctx->demuxer) {
+ mp_tmsg(MSGT_CPLAYER, MSGL_ERR, "Failed to recognize file format.\n");
+ goto goto_next_file;
+ }
if (mpctx->demuxer->matroska_data.ordered_chapters)
build_ordered_chapter_timeline(mpctx);