diff stream/stream_bluray.c @ 36081:eadb3ddad605

Remove the broken -bluray-chapter option.
author reimar
date Fri, 26 Apr 2013 19:50:19 +0000
parents 4c42154f7aa3
children 805ff0c5b699
line wrap: on
line diff
--- 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;