mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
rawparse: Don't use GST_FLOW_IS_FATAL()
This commit is contained in:
parent
f6014febc0
commit
793a3563fa
1 changed files with 15 additions and 17 deletions
|
@ -406,7 +406,6 @@ pause:
|
||||||
GST_LOG_OBJECT (rp, "pausing task, reason %s", reason);
|
GST_LOG_OBJECT (rp, "pausing task, reason %s", reason);
|
||||||
gst_pad_pause_task (rp->sinkpad);
|
gst_pad_pause_task (rp->sinkpad);
|
||||||
|
|
||||||
if (GST_FLOW_IS_FATAL (ret) || ret == GST_FLOW_NOT_LINKED) {
|
|
||||||
if (ret == GST_FLOW_UNEXPECTED) {
|
if (ret == GST_FLOW_UNEXPECTED) {
|
||||||
if (rp->segment.flags & GST_SEEK_FLAG_SEGMENT) {
|
if (rp->segment.flags & GST_SEEK_FLAG_SEGMENT) {
|
||||||
GstClockTime stop;
|
GstClockTime stop;
|
||||||
|
@ -423,13 +422,12 @@ pause:
|
||||||
GST_LOG_OBJECT (rp, "Sending EOS, at end of stream");
|
GST_LOG_OBJECT (rp, "Sending EOS, at end of stream");
|
||||||
gst_pad_push_event (rp->srcpad, gst_event_new_eos ());
|
gst_pad_push_event (rp->srcpad, gst_event_new_eos ());
|
||||||
}
|
}
|
||||||
} else {
|
} else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) {
|
||||||
GST_ELEMENT_ERROR (rp, STREAM, FAILED,
|
GST_ELEMENT_ERROR (rp, STREAM, FAILED,
|
||||||
("Internal data stream error."),
|
("Internal data stream error."),
|
||||||
("stream stopped, reason %s", reason));
|
("stream stopped, reason %s", reason));
|
||||||
gst_pad_push_event (rp->srcpad, gst_event_new_eos ());
|
gst_pad_push_event (rp->srcpad, gst_event_new_eos ());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue