From cabc01f107b4f63b25e1ade631037f6748966f00 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Thu, 20 Oct 2011 10:42:42 +0100 Subject: [PATCH] resindvdsrc: do not try to seek before the first chapter https://bugzilla.gnome.org/show_bug.cgi?id=589064 --- ext/resindvd/resindvdsrc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ext/resindvd/resindvdsrc.c b/ext/resindvd/resindvdsrc.c index e4bdd7eec6..75333ea39f 100644 --- a/ext/resindvd/resindvdsrc.c +++ b/ext/resindvd/resindvdsrc.c @@ -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) {