projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a44d566
)
dvdread: Fix seek starting at 0 for title != 1
author
Jens Georg
<mail@jensge.org>
Sat, 27 Feb 2016 19:17:31 +0000
(20:17 +0100)
committer
Jan Schmidt
<jan@centricular.com>
Sun, 28 Feb 2016 12:34:00 +0000
(23:34 +1100)
Otherwise the playback would start at title 0
https://bugzilla.gnome.org/show_bug.cgi?id=762787
ext/dvdread/dvdreadsrc.c
patch
|
blob
|
history
diff --git
a/ext/dvdread/dvdreadsrc.c
b/ext/dvdread/dvdreadsrc.c
index 5c2b66a7ca3c801b6d4d0950f3dcaf082b5f14f3..65ba58f71a5e597bb5afa7802074d799e5266f69 100644
(file)
--- 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;