[gst-cvs] gst-plugins-bad: ttaparse: Don't post an error message on UNEXPECTED

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Sep 21 03:29:29 PDT 2010


Module: gst-plugins-bad
Branch: master
Commit: 21d74bb58df925c79a9f232ed8a3b725f933b4b3
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=21d74bb58df925c79a9f232ed8a3b725f933b4b3

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Fri Aug 27 18:52:54 2010 +0200

ttaparse: Don't post an error message on UNEXPECTED

Also don't use GST_FLOW_IS_FATAL()

---

 gst/tta/gstttaparse.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/gst/tta/gstttaparse.c b/gst/tta/gstttaparse.c
index 82187a0..3d64995 100644
--- a/gst/tta/gstttaparse.c
+++ b/gst/tta/gstttaparse.c
@@ -464,7 +464,9 @@ gst_tta_parse_loop (GstTtaParse * ttaparse)
 pause:
   GST_LOG_OBJECT (ttaparse, "pausing task, %s", gst_flow_get_name (ret));
   gst_pad_pause_task (ttaparse->sinkpad);
-  if (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED) {
+  if (ret == GST_FLOW_UNEXPECTED) {
+    gst_pad_push_event (ttaparse->srcpad, gst_event_new_eos ());
+  } else if (ret < GST_FLOW_UNEXPECTED || ret == GST_FLOW_NOT_LINKED) {
     GST_ELEMENT_ERROR (ttaparse, STREAM, FAILED,
         ("Internal data stream error."),
         ("streaming stopped, reason %s", gst_flow_get_name (ret)));





More information about the Gstreamer-commits mailing list