From 0f7d9f156a06d0226b1a2b3b70e2786b9bf71e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 8 Jun 2007 16:49:41 +0000 Subject: When driving the pipeline, also post an error when we get a not-linked flow return from downstream. Original commit message from CVS: * ext/timidity/gsttimidity.c: (gst_timidity_loop): * ext/timidity/gstwildmidi.c: (gst_wildmidi_loop): * gst/tta/gstttaparse.c: (gst_tta_parse_loop): When driving the pipeline, also post an error when we get a not-linked flow return from downstream. --- gst/tta/gstttaparse.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gst/tta/gstttaparse.c') diff --git a/gst/tta/gstttaparse.c b/gst/tta/gstttaparse.c index efbd4ce6..c9efbe56 100644 --- a/gst/tta/gstttaparse.c +++ b/gst/tta/gstttaparse.c @@ -464,11 +464,12 @@ gst_tta_parse_loop (GstTtaParse * ttaparse) return; pause: - GST_LOG_OBJECT (ttaparse, "pausing task %d", ret); + GST_LOG_OBJECT (ttaparse, "pausing task, %s", gst_flow_get_name (ret)); gst_pad_pause_task (ttaparse->sinkpad); - if (GST_FLOW_IS_FATAL (ret)) { + if (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED) { GST_ELEMENT_ERROR (ttaparse, STREAM, FAILED, - ("Internal data stream error."), ("streaming stopped, reason %d", ret)); + ("Internal data stream error."), + ("streaming stopped, reason %s", gst_flow_get_name (ret))); gst_pad_push_event (ttaparse->srcpad, gst_event_new_eos ()); } } -- cgit v1.2.1