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