[gst-cvs] gst-plugins-base: parse: Don't error on discont

Wim Taymans wtay at kemper.freedesktop.org
Mon Oct 4 08:27:47 PDT 2010


Module: gst-plugins-base
Branch: master
Commit: 88cf7a2156ed0865f72b3daa362bcc30fc26e518
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=88cf7a2156ed0865f72b3daa362bcc30fc26e518

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Mon Oct  4 17:27:00 2010 +0200

parse: Don't error on discont

We don't need to error out when we detect a discontinuity.

---

 ext/theora/gsttheoraparse.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/ext/theora/gsttheoraparse.c b/ext/theora/gsttheoraparse.c
index 289b928..dcbe833 100644
--- a/ext/theora/gsttheoraparse.c
+++ b/ext/theora/gsttheoraparse.c
@@ -585,8 +585,7 @@ theora_parse_drain_queue (GstTheoraParse * parse, gint64 granulepos)
     GST_WARNING ("jumped %" G_GINT64_FORMAT
         " frames backwards! not sure what to do here",
         parse->prev_frame - prev_frame);
-    ret = GST_FLOW_ERROR;
-    goto done;
+    parse->prev_frame = prev_frame;
   } else if (prev_frame > parse->prev_frame) {
     GST_INFO ("discontinuity detected (%" G_GINT64_FORMAT
         " frames)", prev_frame - parse->prev_frame);





More information about the Gstreamer-commits mailing list