diff options
author | Max Kellermann <max@duempel.org> | 2012-04-04 23:10:38 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-04-04 23:59:06 +0200 |
commit | 98a468a1013401298205390db43b63a6ff3a3478 (patch) | |
tree | 1ddc7ea2992fe9125f0631f8fa99b169f9d437f8 /src/encoder/vorbis_encoder.c | |
parent | 47c58c01d10526b3e4b4b6cff0faa17af4039916 (diff) | |
download | mpd-98a468a1013401298205390db43b63a6ff3a3478.tar.gz mpd-98a468a1013401298205390db43b63a6ff3a3478.tar.xz mpd-98a468a1013401298205390db43b63a6ff3a3478.zip |
encoder/vorbis: generate end-of-stream packet before tag
Don't reset the ogg_stream_state object, because this discards the
end-of-stream packet that was just added.
Diffstat (limited to 'src/encoder/vorbis_encoder.c')
-rw-r--r-- | src/encoder/vorbis_encoder.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/encoder/vorbis_encoder.c b/src/encoder/vorbis_encoder.c index 38a998bd2..519d7cbf6 100644 --- a/src/encoder/vorbis_encoder.c +++ b/src/encoder/vorbis_encoder.c @@ -285,8 +285,6 @@ vorbis_encoder_pre_tag(struct encoder *_encoder, G_GNUC_UNUSED GError **error) vorbis_analysis_init(&encoder->vd, &encoder->vi); vorbis_block_init(&encoder->vd, &encoder->vb); - ogg_stream_reset(&encoder->os); - encoder->flush = true; return true; } |