mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-04 05:35:53 +00:00
aiffparse: Don't use GST_FLOW_IS_FATAL()
This commit is contained in:
parent
30ff1ea346
commit
f2affc667f
|
@ -1247,7 +1247,6 @@ pause:
|
|||
aiff->segment_running = FALSE;
|
||||
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 (aiff->segment.flags & GST_SEEK_FLAG_SEGMENT) {
|
||||
|
@ -1262,7 +1261,7 @@ pause:
|
|||
} else {
|
||||
gst_pad_push_event (aiff->srcpad, gst_event_new_eos ());
|
||||
}
|
||||
} else {
|
||||
} else if (ret < GST_FLOW_UNEXPECTED || ret == GST_FLOW_NOT_LINKED) {
|
||||
/* for fatal errors we post an error message, post the error
|
||||
* first so the app knows about the error first. */
|
||||
GST_ELEMENT_ERROR (aiff, STREAM, FAILED,
|
||||
|
@ -1270,7 +1269,6 @@ pause:
|
|||
("streaming task paused, reason %s (%d)", reason, ret));
|
||||
gst_pad_push_event (aiff->srcpad, gst_event_new_eos ());
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue