siddec: don't use GST_FLOW_IS_FATAL
GST_FLOW_IS_FATAL has been deprecated in core git.
This commit is contained in:
parent
c16d189a0b
commit
c33e70af70
@ -430,20 +430,18 @@ pause:
|
|||||||
{
|
{
|
||||||
const gchar *reason = gst_flow_get_name (ret);
|
const gchar *reason = gst_flow_get_name (ret);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (siddec, "pausing task, reason %s", reason);
|
if (ret == GST_FLOW_UNEXPECTED) {
|
||||||
gst_pad_pause_task (pad);
|
/* perform EOS logic, FIXME, segment seek? */
|
||||||
|
gst_pad_push_event (pad, gst_event_new_eos ());
|
||||||
if (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED) {
|
} else if (ret < GST_FLOW_UNEXPECTED || ret == GST_FLOW_NOT_LINKED) {
|
||||||
if (ret == GST_FLOW_UNEXPECTED) {
|
/* for fatal errors we post an error message */
|
||||||
/* perform EOS logic, FIXME, segment seek? */
|
GST_ELEMENT_ERROR (siddec, STREAM, FAILED,
|
||||||
gst_pad_push_event (pad, gst_event_new_eos ());
|
(NULL), ("streaming task paused, reason %s", reason));
|
||||||
} else {
|
gst_pad_push_event (pad, gst_event_new_eos ());
|
||||||
/* for fatal errors we post an error message */
|
|
||||||
GST_ELEMENT_ERROR (siddec, STREAM, FAILED,
|
|
||||||
(NULL), ("streaming task paused, reason %s", reason));
|
|
||||||
gst_pad_push_event (pad, gst_event_new_eos ());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_INFO_OBJECT (siddec, "pausing task, reason: %s", reason);
|
||||||
|
gst_pad_pause_task (pad);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user