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:
parent
47c58c01d1
commit
98a468a101
2
NEWS
2
NEWS
|
@ -3,6 +3,8 @@ ver 0.16.8 (2012/??/??)
|
||||||
* decoder:
|
* decoder:
|
||||||
- vorbis (and others): fix seeking at startup
|
- vorbis (and others): fix seeking at startup
|
||||||
- ffmpeg: read the "year" tag
|
- ffmpeg: read the "year" tag
|
||||||
|
* encoder:
|
||||||
|
- vorbis: generate end-of-stream packet before tag
|
||||||
* output:
|
* output:
|
||||||
- jack: check for connection failure before starting playback
|
- jack: check for connection failure before starting playback
|
||||||
- jack: workaround for libjack1 crash bug
|
- jack: workaround for libjack1 crash bug
|
||||||
|
|
|
@ -285,8 +285,6 @@ vorbis_encoder_pre_tag(struct encoder *_encoder, G_GNUC_UNUSED GError **error)
|
||||||
vorbis_analysis_init(&encoder->vd, &encoder->vi);
|
vorbis_analysis_init(&encoder->vd, &encoder->vi);
|
||||||
vorbis_block_init(&encoder->vd, &encoder->vb);
|
vorbis_block_init(&encoder->vd, &encoder->vb);
|
||||||
|
|
||||||
ogg_stream_reset(&encoder->os);
|
|
||||||
|
|
||||||
encoder->flush = true;
|
encoder->flush = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue