diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-10 14:51:52 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-10 15:34:16 +0200 |
commit | 2dca4577bb81a845a992a4ad4764835d0868a068 (patch) | |
tree | a81545db1eb8143487cc931db9218f02269b04c4 /mplayer.c | |
parent | b98821de7cd341ee30ba228e6be1934e0ad882c2 (diff) | |
download | mpv-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |