From 8f4ced62e293b875205dc7e8f71d43b7b9573002 Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 5 Dec 2008 18:41:01 +0000 Subject: [PATCH] fixed a problem with oggs sometimes not correctly being closed when written --- .../audio/audio_file_formats/juce_OggVorbisAudioFormat.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/juce_appframework/audio/audio_file_formats/juce_OggVorbisAudioFormat.cpp b/src/juce_appframework/audio/audio_file_formats/juce_OggVorbisAudioFormat.cpp index 2835066a8a..f39d07bffa 100644 --- a/src/juce_appframework/audio/audio_file_formats/juce_OggVorbisAudioFormat.cpp +++ b/src/juce_appframework/audio/audio_file_formats/juce_OggVorbisAudioFormat.cpp @@ -339,6 +339,9 @@ public: { if (ok) { + // write a zero-length packet to show ogg that we're finished.. + write (0, 0); + ogg_stream_clear (&os); vorbis_block_clear (&vb); vorbis_dsp_clear (&vd);