From fa13715d58a36118120ef82fb2d3d312fc4959ef Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 11 Sep 2002 21:41:53 +0000 Subject: [PATCH] Fix vorbisenc EOS problems Original commit message from CVS: Fix vorbisenc EOS problems --- ext/vorbis/vorbisenc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/vorbis/vorbisenc.c b/ext/vorbis/vorbisenc.c index 7375f2b..8a855d1 100644 --- a/ext/vorbis/vorbisenc.c +++ b/ext/vorbis/vorbisenc.c @@ -232,6 +232,7 @@ gst_vorbisenc_chain (GstPad * pad, GstBuffer * buf) Tell the library we're at end of stream so that it can handle the last frame and mark end of stream in the output properly */ vorbis_analysis_wrote (&vorbisenc->vd, 0); + break; default: gst_pad_event_default (pad, GST_EVENT (buf)); break; @@ -312,8 +313,9 @@ gst_vorbisenc_chain (GstPad * pad, GstBuffer * buf) vorbis_block_clear (&vorbisenc->vb); vorbis_dsp_clear (&vorbisenc->vd); vorbis_info_clear (&vorbisenc->vi); + gst_pad_push (vorbisenc->srcpad, GST_BUFFER (gst_event_new (GST_EVENT_EOS))); + gst_element_set_eos (GST_ELEMENT (vorbisenc)); } - } static void -- 2.7.4