Merge branch 'v0.22.x'

This commit is contained in:
Max Kellermann 2021-03-13 08:41:10 +01:00
commit a7ba10423d
5 changed files with 6 additions and 2 deletions

2
NEWS
View File

@ -13,9 +13,11 @@ ver 0.22.7 (not yet released)
- don't use glibc extension to parse time stamps - don't use glibc extension to parse time stamps
* decoder * decoder
- ffmpeg: fix build problem with FFmpeg 3.4 - ffmpeg: fix build problem with FFmpeg 3.4
- gme: support RSN files
* storage * storage
- curl: don't use glibc extension - curl: don't use glibc extension
* output * output
- httpd: send header "Access-Control-Allow-Origin: *"
- wasapi: add algorithm for finding usable audio format - wasapi: add algorithm for finding usable audio format
- wasapi: use default device only if none was configured - wasapi: use default device only if none was configured
- wasapi: add DoP support - wasapi: add DoP support

View File

@ -344,7 +344,7 @@ gme_container_scan(Path path_fs)
static const char *const gme_suffixes[] = { static const char *const gme_suffixes[] = {
"ay", "gbs", "gym", "hes", "kss", "nsf", "ay", "gbs", "gym", "hes", "kss", "nsf",
"nsfe", "sap", "spc", "vgm", "vgz", "nsfe", "rsn", "sap", "spc", "vgm", "vgz",
nullptr nullptr
}; };

View File

@ -162,6 +162,7 @@ HttpdClient::SendResponse() noexcept
"Connection: close\r\n" "Connection: close\r\n"
"Pragma: no-cache\r\n" "Pragma: no-cache\r\n"
"Cache-Control: no-cache, no-store\r\n" "Cache-Control: no-cache, no-store\r\n"
"Access-Control-Allow-Origin: *\r\n"
"\r\n", "\r\n",
httpd.content_type); httpd.content_type);
response = buffer; response = buffer;

View File

@ -45,6 +45,7 @@ icy_server_metadata_header(const char *name,
"Connection: close\r\n" "Connection: close\r\n"
"Pragma: no-cache\r\n" "Pragma: no-cache\r\n"
"Cache-Control: no-cache, no-store\r\n" "Cache-Control: no-cache, no-store\r\n"
"Access-Control-Allow-Origin: *\r\n"
"\r\n", "\r\n",
name, name,
genre, genre,

View File

@ -724,7 +724,7 @@ WasapiOutput::Play(const void *chunk, size_t size)
return size; return size;
do { 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) { if (consumed_size == 0) {
thread->Wait(); thread->Wait();