resindvdsrc: do not try to seek before the first chapter

https://bugzilla.gnome.org/show_bug.cgi?id=589064
This commit is contained in:
Vincent Penquerc'h 2011-10-20 10:42:42 +01:00
parent 826eb57183
commit cabc01f107

View file

@ -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) {