# HG changeset patch # User reimar # Date 1367003974 0 # Node ID 4c42154f7aa3d31de16d1974ffb129e463386241 # Parent c297c1a78ae60011e4f4e9cd10c3f31e806c0af9 br://: Fix querying current chapter. This also fixes specifying an end chapter via -chapter. Based on patch by Olivier Rolland [billl users.sourceforge.net] diff -r c297c1a78ae6 -r 4c42154f7aa3 stream/stream_bluray.c --- 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;