mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
resindvdsrc: do not try to seek before the first chapter
https://bugzilla.gnome.org/show_bug.cgi?id=589064
This commit is contained in:
parent
826eb57183
commit
cabc01f107
1 changed files with 6 additions and 1 deletions
|
@ -2759,7 +2759,12 @@ rsn_dvdsrc_do_seek (GstBaseSrc * bsrc, GstSegment * segment)
|
|||
if (dvdnav_current_title_info (src->dvdnav, &title, &x) ==
|
||||
DVDNAV_STATUS_OK) {
|
||||
if (segment->start + 1 == x) {
|
||||
dvdnav_prev_pg_search (src->dvdnav);
|
||||
/* if already on the first part, don't try to get before it */
|
||||
if (segment->start == 0) {
|
||||
dvdnav_part_play (src->dvdnav, title, 1);
|
||||
} else {
|
||||
dvdnav_prev_pg_search (src->dvdnav);
|
||||
}
|
||||
ret = TRUE;
|
||||
src->discont = TRUE;
|
||||
} else if (segment->start == x + 1) {
|
||||
|
|
Loading…
Reference in a new issue