nsf: Don't use GST_FLOW_IS_FATAL()
This commit is contained in:
parent
dd8ae4e027
commit
d95bb66074
@ -341,17 +341,15 @@ pause:
|
|||||||
GST_DEBUG_OBJECT (nsfdec, "pausing task, reason %s", reason);
|
GST_DEBUG_OBJECT (nsfdec, "pausing task, reason %s", reason);
|
||||||
gst_pad_pause_task (pad);
|
gst_pad_pause_task (pad);
|
||||||
|
|
||||||
if (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED) {
|
|
||||||
if (ret == GST_FLOW_UNEXPECTED) {
|
if (ret == GST_FLOW_UNEXPECTED) {
|
||||||
/* perform EOS logic, FIXME, segment seek? */
|
/* perform EOS logic, FIXME, segment seek? */
|
||||||
gst_pad_push_event (pad, gst_event_new_eos ());
|
gst_pad_push_event (pad, gst_event_new_eos ());
|
||||||
} else {
|
} else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) {
|
||||||
/* for fatal errors we post an error message */
|
/* for fatal errors we post an error message */
|
||||||
GST_ELEMENT_ERROR (nsfdec, STREAM, FAILED,
|
GST_ELEMENT_ERROR (nsfdec, STREAM, FAILED,
|
||||||
(NULL), ("streaming task paused, reason %s", reason));
|
(NULL), ("streaming task paused, reason %s", reason));
|
||||||
gst_pad_push_event (pad, gst_event_new_eos ());
|
gst_pad_push_event (pad, gst_event_new_eos ());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user