From 0936952d6a3321aeb8005eed3faf42d0458f9aa3 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 1 Oct 2004 13:28:30 +0000 Subject: [PATCH] ext/ogg/gstoggmux.c: Handle EOS properly. Original commit message from CVS: * ext/ogg/gstoggmux.c: (gst_ogg_mux_next_buffer), (gst_ogg_mux_queue_pads): Handle EOS properly. --- ChangeLog | 6 ++++++ ext/ogg/gstoggmux.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6f69e869ac..1acd382a9c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-10-01 Ronald S. Bultje + + * ext/ogg/gstoggmux.c: (gst_ogg_mux_next_buffer), + (gst_ogg_mux_queue_pads): + Handle EOS properly. + 2004-10-01 Sebastien Cote Reviewed by: Ronald S. Bultje diff --git a/ext/ogg/gstoggmux.c b/ext/ogg/gstoggmux.c index 7b9cfe27e5..b3975ee216 100644 --- a/ext/ogg/gstoggmux.c +++ b/ext/ogg/gstoggmux.c @@ -425,6 +425,7 @@ gst_ogg_mux_next_buffer (GstOggPad * pad) switch (type) { case GST_EVENT_EOS: + pad->eos = TRUE; gst_event_unref (event); return NULL; case GST_EVENT_DISCONTINUOUS: @@ -569,6 +570,9 @@ gst_ogg_mux_queue_pads (GstOggMux * ogg_mux) walk = walk->next; + if (pad->eos) + continue; + /* try to get a new buffer for this pad if needed and possible */ if (pad->buffer == NULL && GST_PAD_IS_USABLE (pad->pad)) { pad->buffer = gst_ogg_mux_next_buffer (pad);