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.
This commit is contained in:
Ronald S. Bultje 2004-10-01 13:28:30 +00:00
parent b730e38a25
commit 0936952d6a
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-10-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/ogg/gstoggmux.c: (gst_ogg_mux_next_buffer),
(gst_ogg_mux_queue_pads):
Handle EOS properly.
2004-10-01 Sebastien Cote <sc5@hermes.usherb.ca>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>

View file

@ -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);