summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2016-02-27 20:17:31 +0100
committerJan Schmidt <jan@centricular.com>2016-02-28 23:34:00 +1100
commit7e1c64e8465ae0e7e548bbe8e71304a306f8f4c6 (patch)
tree1631aa9fa1a46ae158846bc92696ca94963e9121 /ext
parenta44d5664cdb703677e2d18ec5fbae241a77374bc (diff)
dvdread: Fix seek starting at 0 for title != 1
Otherwise the playback would start at title 0 https://bugzilla.gnome.org/show_bug.cgi?id=762787
Diffstat (limited to 'ext')
-rw-r--r--ext/dvdread/dvdreadsrc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/dvdread/dvdreadsrc.c b/ext/dvdread/dvdreadsrc.c
index 5c2b66a7ca..65ba58f71a 100644
--- a/ext/dvdread/dvdreadsrc.c
+++ b/ext/dvdread/dvdreadsrc.c
@@ -717,7 +717,8 @@ gst_dvd_read_src_get_sector_from_time (GstDvdReadSrc * src, GstClockTime ts)
if (src->vts_tmapt == NULL || src->vts_tmapt->nr_of_tmaps < src->ttn)
return -1;
- sector = 0;
+ sector = src->vts_tmapt->tmap[src->ttn - 1].map_ent[0] & 0x7fffffff;
+
for (j = 0; j < src->vts_tmapt->tmap[src->ttn - 1].nr_of_entries; ++j) {
GstClockTime entry_time;