sink: Make auto device name a constant

This commit is contained in:
MerryMage 2018-07-12 15:52:06 +01:00
parent d269beab0d
commit 7d642b25e9
4 changed files with 5 additions and 3 deletions

View file

@ -42,7 +42,7 @@ SDL2Sink::SDL2Sink(std::string device_name) : impl(std::make_unique<Impl>()) {
SDL_zero(obtained_audiospec);
const char* device = nullptr;
if (device_name != "auto" && !device_name.empty()) {
if (device_name != auto_device_name && !device_name.empty()) {
device = device_name.c_str();
}