summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2013-04-26 19:19:34 +0000
committerwm4 <wm4@nowhere>2013-04-27 15:28:34 +0200
commit2f004875d3bc0b951e04b203a5bcc818faccf065 (patch)
tree5cec803468c685871643750462b70b410f455551
parent4a9410880c17d1f10f679bf84e5001890dfc5e41 (diff)
downloadmpv-2f004875d3bc0b951e04b203a5bcc818faccf065.tar.bz2
mpv-2f004875d3bc0b951e04b203a5bcc818faccf065.tar.xz
stream_bluray: fix querying current chapter
br://: Fix querying current chapter. This also fixes specifying an end chapter via -chapter. Based on patch by Olivier Rolland [billl users.sourceforge.net] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36173 b3059339-0415-0410-9bf9-f77b7e298cf2
-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;