diff --git a/NEWS b/NEWS index 5b5a9c6d0..68551434a 100644 --- a/NEWS +++ b/NEWS @@ -13,9 +13,11 @@ ver 0.22.7 (not yet released) - don't use glibc extension to parse time stamps * decoder - ffmpeg: fix build problem with FFmpeg 3.4 + - gme: support RSN files * storage - curl: don't use glibc extension * output + - httpd: send header "Access-Control-Allow-Origin: *" - wasapi: add algorithm for finding usable audio format - wasapi: use default device only if none was configured - wasapi: add DoP support diff --git a/src/decoder/plugins/GmeDecoderPlugin.cxx b/src/decoder/plugins/GmeDecoderPlugin.cxx index 86efd7288..f279d95b0 100644 --- a/src/decoder/plugins/GmeDecoderPlugin.cxx +++ b/src/decoder/plugins/GmeDecoderPlugin.cxx @@ -344,7 +344,7 @@ gme_container_scan(Path path_fs) static const char *const gme_suffixes[] = { "ay", "gbs", "gym", "hes", "kss", "nsf", - "nsfe", "sap", "spc", "vgm", "vgz", + "nsfe", "rsn", "sap", "spc", "vgm", "vgz", nullptr }; diff --git a/src/output/plugins/httpd/HttpdClient.cxx b/src/output/plugins/httpd/HttpdClient.cxx index c506f9cdb..175394b28 100644 --- a/src/output/plugins/httpd/HttpdClient.cxx +++ b/src/output/plugins/httpd/HttpdClient.cxx @@ -162,6 +162,7 @@ HttpdClient::SendResponse() noexcept "Connection: close\r\n" "Pragma: no-cache\r\n" "Cache-Control: no-cache, no-store\r\n" + "Access-Control-Allow-Origin: *\r\n" "\r\n", httpd.content_type); response = buffer; diff --git a/src/output/plugins/httpd/IcyMetaDataServer.cxx b/src/output/plugins/httpd/IcyMetaDataServer.cxx index 33cb2b60f..96c8bba12 100644 --- a/src/output/plugins/httpd/IcyMetaDataServer.cxx +++ b/src/output/plugins/httpd/IcyMetaDataServer.cxx @@ -45,6 +45,7 @@ icy_server_metadata_header(const char *name, "Connection: close\r\n" "Pragma: no-cache\r\n" "Cache-Control: no-cache, no-store\r\n" + "Access-Control-Allow-Origin: *\r\n" "\r\n", name, genre, diff --git a/src/output/plugins/wasapi/WasapiOutputPlugin.cxx b/src/output/plugins/wasapi/WasapiOutputPlugin.cxx index fed16fbee..97b66a998 100644 --- a/src/output/plugins/wasapi/WasapiOutputPlugin.cxx +++ b/src/output/plugins/wasapi/WasapiOutputPlugin.cxx @@ -724,7 +724,7 @@ WasapiOutput::Play(const void *chunk, size_t size) return size; do { - const size_t consumed_size = thread->Push({chunk, size}); + const size_t consumed_size = thread->Push({input.data, input.size}); if (consumed_size == 0) { thread->Wait();