From 2dca4577bb81a845a992a4ad4764835d0868a068 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Wed, 10 Nov 2010 14:51:52 +0200 Subject: 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 ." (or possibly error messages triggered by format-specific check functions in between). Add an explicit "Failed to recognize file format." error message. --- mplayer.c | 6 ++++-- 1 file 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); -- cgit v1.2.3