gst/asfdemux/gstasfdemux.c: Post an error if we receive an EOS event while still waiting for the

Original commit message from CVS:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_sink_event):
Post an error if we receive an EOS event while still waiting for the
ASF header object to come through.
This commit is contained in:
Tim-Philipp Müller 2007-02-01 11:12:25 +00:00
parent a7ba4d3802
commit 69f195f044
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-02-01 Tim-Philipp Müller <tim at centricular dot net>
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_sink_event):
Post an error if we receive an EOS event while still waiting for the
ASF header object to come through.
2007-01-24 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Xavier B. <xavierb gmail com>

View file

@ -195,6 +195,12 @@ gst_asf_demux_sink_event (GstPad * pad, GstEvent * event)
}
case GST_EVENT_EOS:{
if (demux->state == GST_ASF_DEMUX_STATE_HEADER) {
GST_ELEMENT_ERROR (demux, STREAM, DEMUX,
(_("This stream contains no data.")),
("got eos and didn't receive a complete header object"));
break;
}
GST_OBJECT_LOCK (demux);
gst_adapter_clear (demux->adapter);
demux->bytes_needed = 0;