lib/alsa/AllowedFormat: use std::string_view

This commit is contained in:
Max Kellermann
2021-10-23 11:41:24 +02:00
parent 0f84332654
commit b8890726f2
3 changed files with 3 additions and 3 deletions

View File

@@ -471,7 +471,7 @@ AlsaOutput::SetAttribute(std::string &&name, std::string &&value)
{
if (name == "allowed_formats") {
const std::lock_guard<Mutex> lock(attributes_mutex);
allowed_formats = Alsa::AllowedFormat::ParseList({value.data(), value.length()});
allowed_formats = Alsa::AllowedFormat::ParseList(value);
#ifdef ENABLE_DSD
} else if (name == "dop") {
const std::lock_guard<Mutex> lock(attributes_mutex);