changeset 36079:4c42154f7aa3

br://: Fix querying current chapter. This also fixes specifying an end chapter via -chapter. Based on patch by Olivier Rolland [billl users.sourceforge.net]
author reimar
date Fri, 26 Apr 2013 19:19:34 +0000
parents c297c1a78ae6
children a5fd69f820f3
files stream/stream_bluray.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_bluray.c	Thu Apr 18 21:54:53 2013 +0000
+++ b/stream/stream_bluray.c	Fri Apr 26 19:19:34 2013 +0000
@@ -52,7 +52,6 @@
 struct bluray_priv_s {
     BLURAY *bd;
     int current_angle;
-    int current_chapter;
     int current_title;
 };
 
@@ -132,7 +131,7 @@
     }
 
     case STREAM_CTRL_GET_CURRENT_CHAPTER: {
-        *((unsigned int *) arg) = b->current_chapter;
+        *((unsigned int *) arg) = bd_get_current_chapter(b->bd);
         return 1;
     }
 
@@ -353,7 +352,6 @@
     b                  = calloc(1, sizeof(struct bluray_priv_s));
     b->bd              = bd;
     b->current_angle   = angle;
-    b->current_chapter = chapter;
     b->current_title   = title;
 
     s->start_pos   = chapter_pos;