# HG changeset patch # User reimar # Date 1367005819 0 # Node ID eadb3ddad6050cc4c428eeadef18206499540a94 # Parent a5fd69f820f39a7737663ca9515699b9d2a570af Remove the broken -bluray-chapter option. diff -r a5fd69f820f3 -r eadb3ddad605 DOCS/man/en/mplayer.1 --- a/DOCS/man/en/mplayer.1 Fri Apr 26 19:43:01 2013 +0000 +++ b/DOCS/man/en/mplayer.1 Fri Apr 26 19:50:19 2013 +0000 @@ -1432,10 +1432,6 @@ Here you can tell MPlayer which angles to use (default: 1). . .TP -.B \-bluray\-chapter (Blu\-ray only) -Tells MPlayer which Blu\-ray chapter to start the current title from (default: 1). -. -.TP .B \-bluray\-device (Blu\-ray only) Specify the Blu\-ray disc location. Must be a directory with Blu\-ray structure. . diff -r a5fd69f820f3 -r eadb3ddad605 cfg-common.h --- a/cfg-common.h Fri Apr 26 19:43:01 2013 +0000 +++ b/cfg-common.h Fri Apr 26 19:50:19 2013 +0000 @@ -340,10 +340,9 @@ {"bluray-device", &bluray_device, CONF_TYPE_STRING, 0, 0, 0, NULL}, #ifdef CONFIG_LIBBLURAY {"bluray-angle", &bluray_angle, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL}, - {"bluray-chapter", &bluray_chapter, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL}, + {"bluray-chapter", "The -bluray-chapter option was broken and thus removed, use -chapter instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, #else {"bluray-angle", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL}, - {"bluray-chapter", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, #endif /* CONFIG_LIBBLURAY */ {"alang", &audio_lang, CONF_TYPE_STRING, 0, 0, 0, NULL}, {"slang", &dvdsub_lang, CONF_TYPE_STRING, 0, 0, 0, NULL}, diff -r a5fd69f820f3 -r eadb3ddad605 stream/stream_bluray.c --- a/stream/stream_bluray.c Fri Apr 26 19:43:01 2013 +0000 +++ b/stream/stream_bluray.c Fri Apr 26 19:50:19 2013 +0000 @@ -47,7 +47,6 @@ #define BLURAY_DEFAULT_TITLE 0 int bluray_angle = 0; -int bluray_chapter = 0; struct bluray_priv_s { BLURAY *bd; @@ -244,9 +243,8 @@ int title, title_guess, title_count; uint64_t title_size; - unsigned int chapter = 0, angle = 0; + unsigned int angle = 0; uint64_t max_duration = 0; - int64_t chapter_pos = 0; char *device = NULL; int i; @@ -322,16 +320,6 @@ if (!info) goto err_no_info; - /* Select chapter */ - chapter = bluray_chapter ? bluray_chapter : BLURAY_DEFAULT_CHAPTER; - chapter = FFMIN(chapter, info->chapter_count); - - if (chapter) - chapter_pos = bd_chapter_pos(bd, chapter); - - mp_msg(MSGT_IDENTIFY, MSGL_INFO, - "ID_BLURAY_CURRENT_CHAPTER=%d\n", chapter + 1); - /* Select angle */ angle = bluray_angle ? bluray_angle : BLURAY_DEFAULT_ANGLE; angle = FFMIN(angle, info->angle_count); @@ -354,7 +342,6 @@ b->current_angle = angle; b->current_title = title; - s->start_pos = chapter_pos; s->end_pos = title_size; s->sector_size = BLURAY_SECTOR_SIZE; s->flags = mode | MP_STREAM_SEEK;