summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream/stream_bluray.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c
index 8ee69aaa80..0cc1152310 100644
--- a/stream/stream_bluray.c
+++ b/stream/stream_bluray.c
@@ -55,7 +55,6 @@ int bluray_chapter = 0;
struct bluray_priv_s {
BLURAY *bd;
int current_angle;
- int current_chapter;
int current_title;
};
@@ -135,7 +134,7 @@ static int bluray_stream_control(stream_t *s, int cmd, void *arg)
}
case STREAM_CTRL_GET_CURRENT_CHAPTER: {
- *((unsigned int *) arg) = b->current_chapter;
+ *((unsigned int *) arg) = bd_get_current_chapter(b->bd);
return 1;
}
@@ -358,7 +357,6 @@ err_no_info:
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;