mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 13:32:29 +00:00
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:
parent
b730e38a25
commit
0936952d6a
2 changed files with 10 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue