mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
ttaparse: Don't post an error message on UNEXPECTED
Also don't use GST_FLOW_IS_FATAL()
This commit is contained in:
parent
d4782cbff8
commit
21d74bb58d
1 changed files with 3 additions and 1 deletions
|
@ -464,7 +464,9 @@ gst_tta_parse_loop (GstTtaParse * ttaparse)
|
||||||
pause:
|
pause:
|
||||||
GST_LOG_OBJECT (ttaparse, "pausing task, %s", gst_flow_get_name (ret));
|
GST_LOG_OBJECT (ttaparse, "pausing task, %s", gst_flow_get_name (ret));
|
||||||
gst_pad_pause_task (ttaparse->sinkpad);
|
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,
|
GST_ELEMENT_ERROR (ttaparse, STREAM, FAILED,
|
||||||
("Internal data stream error."),
|
("Internal data stream error."),
|
||||||
("streaming stopped, reason %s", gst_flow_get_name (ret)));
|
("streaming stopped, reason %s", gst_flow_get_name (ret)));
|
||||||
|
|
Loading…
Reference in a new issue