diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2007-06-08 16:49:41 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2007-06-08 16:49:41 +0000 |
commit | 0f7d9f156a06d0226b1a2b3b70e2786b9bf71e2b (patch) | |
tree | 5624e999e5b670a36c270a07c523d6132d52ec1f /gst/tta | |
parent | 5210165feb20efb9ce1243a1aae003ff43c40ba7 (diff) | |
download | gst-plugins-bad-0f7d9f156a06d0226b1a2b3b70e2786b9bf71e2b.tar.gz gst-plugins-bad-0f7d9f156a06d0226b1a2b3b70e2786b9bf71e2b.tar.bz2 gst-plugins-bad-0f7d9f156a06d0226b1a2b3b70e2786b9bf71e2b.zip |
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.
Diffstat (limited to 'gst/tta')
-rw-r--r-- | gst/tta/gstttaparse.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 ()); } } |