mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
flvdemux: Don't use GST_FLOW_IS_FATAL()
This commit is contained in:
parent
1ce0b2dfc7
commit
78eca34a6d
1 changed files with 44 additions and 46 deletions
|
@ -2237,7 +2237,6 @@ pause:
|
|||
GST_LOG_OBJECT (demux, "pausing task, reason %s", reason);
|
||||
gst_pad_pause_task (pad);
|
||||
|
||||
if (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED) {
|
||||
if (ret == GST_FLOW_UNEXPECTED) {
|
||||
/* perform EOS logic */
|
||||
if (!demux->no_more_pads) {
|
||||
|
@ -2276,13 +2275,12 @@ pause:
|
|||
if (!gst_flv_demux_push_src_event (demux, gst_event_new_eos ()))
|
||||
GST_WARNING_OBJECT (demux, "failed pushing EOS on streams");
|
||||
}
|
||||
} else {
|
||||
} else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) {
|
||||
GST_ELEMENT_ERROR (demux, STREAM, FAILED,
|
||||
("Internal data stream error."),
|
||||
("stream stopped, reason %s", reason));
|
||||
gst_flv_demux_push_src_event (demux, gst_event_new_eos ());
|
||||
}
|
||||
}
|
||||
gst_object_unref (demux);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue