summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-04-08 02:37:27 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-04-08 02:42:19 +0300
commit96daf7ed5ef96b86f2539164c27155bc830aa2a6 (patch)
treea77220fb48fba74773fe39cc7e5f4b3be381a4b5 /mplayer.c
parent2d91b19956c7d444ba440078e1c2ecd23d207a87 (diff)
downloadmpv-96daf7ed5ef96b86f2539164c27155bc830aa2a6.tar.bz2
mpv-96daf7ed5ef96b86f2539164c27155bc830aa2a6.tar.xz
Add option -noordered-chapters.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index bd5957cee0..8bcaa3430b 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2730,6 +2730,12 @@ static int find_ordered_chapter_sources(struct MPContext *mpctx,
static void build_ordered_chapter_timeline(struct MPContext *mpctx)
{
+ if (!mpctx->opts.ordered_chapters) {
+ mp_msg(MSGT_CPLAYER, MSGL_INFO, "File uses ordered chapters, but "
+ "you have disabled support for them. Ignoring.\n");
+ return;
+ }
+
mp_msg(MSGT_CPLAYER, MSGL_INFO, "File uses ordered chapters, will build "
"edit timeline.\n");