Don't overwrite the origin flow return by whatever flow we get
when trying to push the remaining internally queued payloads.
We want to do our eos logic, ie. send an EOS event or segment-done
message in any case. Makes things EOS properly when an EOS event
is forced upon the pipeline so that the source returns
FLOW_UNEXPECTED to a pulling asfdemux. Should fix #582056.
* less data queued than required for preroll; force stream activation and
* send any pending payloads before sending EOS */
if (!demux->activated_streams)
- flow = gst_asf_demux_push_complete_payloads (demux, TRUE);
-
- if (GST_FLOW_IS_FATAL (flow) || flow == GST_FLOW_NOT_LINKED) {
- GST_DEBUG_OBJECT (demux, "pushing complete payloads failed");
- goto pause;
- }
+ gst_asf_demux_push_complete_payloads (demux, TRUE);
+ /* we want to push an eos or post a segment-done in any case */
if (demux->segment.flags & GST_SEEK_FLAG_SEGMENT) {
gint64 stop;