From 014f8cd693a1a5b5c3b0ebeeb6b799701a5132f1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Nov 2017 12:00:14 +0100 Subject: 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 --- src/output/plugins/httpd/HttpdOutputPlugin.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/output/plugins/httpd/HttpdOutputPlugin.cxx b/src/output/plugins/httpd/HttpdOutputPlugin.cxx index 966669b1e..0a811b706 100644 --- a/src/output/plugins/httpd/HttpdOutputPlugin.cxx +++ b/src/output/plugins/httpd/HttpdOutputPlugin.cxx @@ -468,6 +468,7 @@ HttpdOutput::SendTag(const Tag &tag) try { encoder->SendTag(tag); + encoder->Flush(); } catch (const std::runtime_error &) { /* ignore */ } -- cgit v1.2.3