GNOME Bugzilla – Bug 762787
dvdreadsrc: Seeking forgets title
Last modified: 2016-04-14 17:43:32 UTC
When using gst_element_seek on a pipeline containing dvdreadsrc and a title different to 1, there seems to be an issue in time -> sector mapping.
gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT, GST_SEEK_TYPE_SET, start, GST_SEEK_TYPE_SET, end)
if start == 0, I get the sector "0" and end up in title 1.
dvdreadsrc.c:1275:gst_dvd_read_src_do_seek:<dvdreadsrc0> Time 0:00:00.000000000 => sector 0
If I set start to 1 second, I get the proper offset for the current title:
dvdreadsrc.c:1275:gst_dvd_read_src_do_seek:<dvdreadsrc0> Time 0:00:01.000000000 => sector 514961
Created attachment 322549 [details] [review]
dvdread: Fix seek starting at 0 for title != 1
Otherwise the playback would start at title 0
This seems to fix it for me. I have tested that seeking on title 1 still works, but not much more.
Review of attachment 322549 [details] [review]:
Looks good, thanks!