mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
sfsink: Don't use GST_FLOW_IS_FATAL()
This commit is contained in:
parent
21d74bb58d
commit
2137ae524d
1 changed files with 6 additions and 7 deletions
|
@ -428,14 +428,13 @@ paused:
|
|||
gst_flow_get_name (result));
|
||||
gst_pad_pause_task (pad);
|
||||
/* fatal errors and NOT_LINKED cause EOS */
|
||||
if (GST_FLOW_IS_FATAL (result) || result == GST_FLOW_NOT_LINKED) {
|
||||
if (result == GST_FLOW_UNEXPECTED) {
|
||||
gst_pad_send_event (pad, gst_event_new_eos ());
|
||||
} else if (result < GST_FLOW_UNEXPECTED || result == GST_FLOW_NOT_LINKED) {
|
||||
GST_ELEMENT_ERROR (basesink, STREAM, FAILED,
|
||||
(_("Internal data stream error.")),
|
||||
("stream stopped, reason %s", gst_flow_get_name (result)));
|
||||
gst_pad_send_event (pad, gst_event_new_eos ());
|
||||
/* EOS does not cause an ERROR message */
|
||||
if (result != GST_FLOW_UNEXPECTED) {
|
||||
GST_ELEMENT_ERROR (basesink, STREAM, FAILED,
|
||||
(_("Internal data stream error.")),
|
||||
("stream stopped, reason %s", gst_flow_get_name (result)));
|
||||
}
|
||||
}
|
||||
gst_object_unref (this);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue