avidemux: don't post an error if EOS can't be pushed downstream.

This aligns avidemux with other demuxers and fixes a bug using avidemux
with a recent gnonlin.
This commit is contained in:
Alessandro Decina 2009-03-24 12:42:13 +01:00
parent 39f59ea456
commit b0c5c7f19b

View file

@ -4175,12 +4175,7 @@ pause:
}
if (push_eos) {
GST_INFO_OBJECT (avi, "sending eos");
if (!(gst_avi_demux_push_event (avi, gst_event_new_eos ()))) {
/* if we don't error out here it will hang */
GST_ELEMENT_ERROR (avi, STREAM, FAILED,
(_("Internal data stream error.")),
("downstream did not handle EOS"));
}
gst_avi_demux_push_event (avi, gst_event_new_eos ());
}
}
}