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.
This commit is contained in:
Max Kellermann 2012-04-04 23:10:38 +02:00
parent 47c58c01d1
commit 98a468a101
2 changed files with 2 additions and 2 deletions

2
NEWS
View File

@ -3,6 +3,8 @@ ver 0.16.8 (2012/??/??)
* decoder:
- vorbis (and others): fix seeking at startup
- ffmpeg: read the "year" tag
* encoder:
- vorbis: generate end-of-stream packet before tag
* output:
- jack: check for connection failure before starting playback
- jack: workaround for libjack1 crash bug

View File

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