gst/asfdemux/gstasfdemux.c: stop processing after EOS

Original commit message from CVS:
2004-01-27  Benjamin Otte  <in7y118@public.uni-hamburg.de>

* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_handle_sink_event):
stop processing after EOS
This commit is contained in:
Benjamin Otte 2004-01-27 01:53:27 +00:00
parent 9964e04d4d
commit 1e52c6f245
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-01-27 Benjamin Otte <in7y118@public.uni-hamburg.de>
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_handle_sink_event):
stop processing after EOS
2004-01-27 Benjamin Otte <in7y118@public.uni-hamburg.de>
* gst/asfdemux/asfheaders.h:

View file

@ -1107,8 +1107,9 @@ gst_asf_demux_handle_sink_event (GstASFDemux *asf_demux,
guint32 remaining)
{
GstEventType type;
gboolean ret = TRUE;
type = event? GST_EVENT_TYPE (event) : GST_EVENT_UNKNOWN;
type = event ? GST_EVENT_TYPE (event) : GST_EVENT_UNKNOWN;
switch (type) {
case GST_EVENT_EOS: {
@ -1122,6 +1123,7 @@ gst_asf_demux_handle_sink_event (GstASFDemux *asf_demux,
gst_event_unref (event);
gst_bytestream_flush (asf_demux->bs, remaining);
gst_element_set_eos (GST_ELEMENT (asf_demux));
ret = FALSE;
break;
}
case GST_EVENT_DISCONTINUOUS:
@ -1152,7 +1154,7 @@ gst_asf_demux_handle_sink_event (GstASFDemux *asf_demux,
gst_event_unref (event);
return TRUE;
return ret;
}
static gboolean