mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
dvdreadsrc: minor safety tweak to sector seeking
This commit is contained in:
parent
24fca6cde5
commit
692f6b5d95
1 changed files with 2 additions and 1 deletions
|
@ -1585,7 +1585,8 @@ gst_dvd_read_src_goto_sector (GstDvdReadSrc * src, int angle)
|
|||
gint first = src->cur_pgc->cell_playback[cur].first_sector;
|
||||
gint last = src->cur_pgc->cell_playback[cur].last_sector;
|
||||
GST_DEBUG_OBJECT (src, "Cell %d sector bounds: %d %d", cur, first, last);
|
||||
if (seek_to >= first && seek_to <= last) {
|
||||
/* seeking to 0 should end up at first chapter in any case */
|
||||
if ((seek_to >= first && seek_to <= last) || (seek_to == 0 && i == 0)) {
|
||||
GST_DEBUG_OBJECT (src, "Seek target found in chapter %d", i);
|
||||
chapter = i;
|
||||
goto done;
|
||||
|
|
Loading…
Reference in a new issue