Commit a9344faf authored by Max Kellermann's avatar Max Kellermann

lib/alsa/AllowedFormat: use StringView::RemoveSuffix()

parent b8890726
......@@ -30,12 +30,7 @@ namespace Alsa {
AllowedFormat::AllowedFormat(StringView s)
{
#ifdef ENABLE_DSD
const StringView dop_tail("=dop");
if (s.EndsWith(dop_tail)) {
dop = true;
s.size -= dop_tail.size;
} else
dop = false;
dop = s.RemoveSuffix("=dop");
#endif
char buffer[64];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment