Mercurial > mplayer.hg
changeset 36081:eadb3ddad605
Remove the broken -bluray-chapter option.
author | reimar |
---|---|
date | Fri, 26 Apr 2013 19:50:19 +0000 |
parents | a5fd69f820f3 |
children | bb41e924fea9 |
files | DOCS/man/en/mplayer.1 cfg-common.h stream/stream_bluray.c |
diffstat | 3 files changed, 2 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- 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 <chapter ID> (Blu\-ray only) -Tells MPlayer which Blu\-ray chapter to start the current title from (default: 1). -. -.TP .B \-bluray\-device <path to disc> (Blu\-ray only) Specify the Blu\-ray disc location. Must be a directory with Blu\-ray structure. .
--- 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},
--- 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;