mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
asfdemux: Handle EOS in push-mode on corrupted files
It is possible no streams were activated when receiving EOS, if so handled it as if we hadn't seen the header https://bugzilla.gnome.org/show_bug.cgi?id=774846
This commit is contained in:
parent
e7ff86665a
commit
48a493070a
1 changed files with 7 additions and 0 deletions
|
@ -448,6 +448,13 @@ gst_asf_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
break;
|
||||
}
|
||||
flow = gst_asf_demux_push_complete_payloads (demux, TRUE);
|
||||
if (!demux->activated_streams) {
|
||||
/* If we still haven't got activated streams, the file is most likely corrupt */
|
||||
GST_ELEMENT_ERROR (demux, STREAM, WRONG_TYPE,
|
||||
(_("This stream contains no data.")),
|
||||
("got eos and didn't receive a complete header object"));
|
||||
break;
|
||||
}
|
||||
if (flow < GST_FLOW_EOS || flow == GST_FLOW_NOT_LINKED) {
|
||||
GST_ELEMENT_FLOW_ERROR (demux, flow);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue