summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2534af3)
raw | patch | inline | side by side (parent: 2534af3)
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | |
Fri, 13 Jan 2012 15:03:50 +0000 (15:03 +0000) | ||
committer | Nikhil Devshatwar <a0132237@ti.com> | |
Fri, 17 May 2013 09:40:54 +0000 (15:10 +0530) |
ext/dvdread/dvdreadsrc.c | patch | blob | history |
index 1ed59e54f8a007b58469659ec5bbf79345f8a8d5..9877f072478a54ebfc40cbc443d3e767ce40411a 100644 (file)
--- a/ext/dvdread/dvdreadsrc.c
+++ b/ext/dvdread/dvdreadsrc.c
*p_first_cell = pgc->program_map[pgn - 1] - 1;
if (chapter == (src->num_chapters - 1)) {
- *p_last_cell = pgc->nr_of_cells;
+ *p_last_cell = pgc->nr_of_cells - 1;
} else {
pgn_next_ch = src->vts_ptt_srpt->title[src->ttn - 1].ptt[chapter + 1].pgn;
*p_last_cell = pgc->program_map[pgn_next_ch - 1] - 1;
}
+
+ GST_DEBUG_OBJECT (src, "Chapter %d bounds: %d %d (within %d cells)",
+ chapter, *p_first_cell, *p_last_cell, pgc->nr_of_cells);
}
static gboolean