diff --git a/src/audio_core/sink_details.cpp b/src/audio_core/sink_details.cpp index 2a51b2b2b2..1ccf813bb7 100644 --- a/src/audio_core/sink_details.cpp +++ b/src/audio_core/sink_details.cpp @@ -21,12 +21,12 @@ namespace AudioCore { // g_sink_details is ordered in terms of desirability, with the best choice at the top. const std::vector g_sink_details = { #ifdef HAVE_CUBEB - {"cubeb", []() { return std::make_unique(); }}, + {"cubeb", &std::make_unique}, #endif #ifdef HAVE_SDL2 - {"sdl2", []() { return std::make_unique(); }}, + {"sdl2", &std::make_unique}, #endif - {"null", []() { return std::make_unique(); }}, + {"null", &std::make_unique}, }; const SinkDetails& GetSinkDetails(std::string sink_id) {