mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
a7ba4d3802
commit
69f195f044
2 changed files with 12 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue