output/httpd: flush encoder after tag
Without the flush, ReadPage() may not return any data, or not all data. This may result in incomplete ddata the new "header" page, corrupting streams with some encoders such as Vorbis. Fixes #145
This commit is contained in:
parent
aea37e46e3
commit
014f8cd693
1
NEWS
1
NEWS
|
@ -12,6 +12,7 @@ ver 0.20.12 (not yet released)
|
||||||
- vorbis: default to quality 3
|
- vorbis: default to quality 3
|
||||||
* output
|
* output
|
||||||
- fix hanging playback with soxr resampler
|
- fix hanging playback with soxr resampler
|
||||||
|
- httpd: flush encoder after tag; fixes corrupt Vorbis stream
|
||||||
|
|
||||||
ver 0.20.11 (2017/10/18)
|
ver 0.20.11 (2017/10/18)
|
||||||
* storage
|
* storage
|
||||||
|
|
|
@ -468,6 +468,7 @@ HttpdOutput::SendTag(const Tag &tag)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
encoder->SendTag(tag);
|
encoder->SendTag(tag);
|
||||||
|
encoder->Flush();
|
||||||
} catch (const std::runtime_error &) {
|
} catch (const std::runtime_error &) {
|
||||||
/* ignore */
|
/* ignore */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue