mxfdemux: Don't use GST_FLOW_IS_FATAL()
This commit is contained in:
parent
f6713f9c3b
commit
dd8ae4e027
@ -2761,7 +2761,6 @@ pause:
|
|||||||
GST_LOG_OBJECT (demux, "pausing task, reason %s", reason);
|
GST_LOG_OBJECT (demux, "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 */
|
/* perform EOS logic */
|
||||||
if (demux->segment.flags & GST_SEEK_FLAG_SEGMENT) {
|
if (demux->segment.flags & GST_SEEK_FLAG_SEGMENT) {
|
||||||
@ -2789,7 +2788,7 @@ pause:
|
|||||||
GST_WARNING_OBJECT (demux, "failed pushing EOS on streams");
|
GST_WARNING_OBJECT (demux, "failed pushing EOS on streams");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) {
|
||||||
GstEvent *e;
|
GstEvent *e;
|
||||||
|
|
||||||
GST_ELEMENT_ERROR (demux, STREAM, FAILED,
|
GST_ELEMENT_ERROR (demux, STREAM, FAILED,
|
||||||
@ -2799,7 +2798,6 @@ pause:
|
|||||||
gst_event_set_seqnum (e, demux->seqnum);
|
gst_event_set_seqnum (e, demux->seqnum);
|
||||||
gst_mxf_demux_push_src_event (demux, e);
|
gst_mxf_demux_push_src_event (demux, e);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
gst_object_unref (demux);
|
gst_object_unref (demux);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user