mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
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
This commit is contained in:
parent
a44d5664cd
commit
7e1c64e846
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
if (src->vts_tmapt == NULL || src->vts_tmapt->nr_of_tmaps < src->ttn)
|
||||||
return -1;
|
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) {
|
for (j = 0; j < src->vts_tmapt->tmap[src->ttn - 1].nr_of_entries; ++j) {
|
||||||
GstClockTime entry_time;
|
GstClockTime entry_time;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue