1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-11 04:01:31 +00:00

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
This commit is contained in:
reimar 2013-04-26 19:19:34 +00:00 committed by wm4
parent 4a9410880c
commit 2f004875d3

View File

@ -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;