From b4062abc11e5920ea753282304e83065e0572c04 Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Fri, 26 Oct 2018 00:32:41 -0400 Subject: [PATCH] cubeb_sink: ignore null-name device when selecting We already ignore them on listing devices. We should do the same when selecting devices. This fix a crash when opening a specific device while there is a null device in the list --- src/audio_core/cubeb_sink.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/audio_core/cubeb_sink.cpp b/src/audio_core/cubeb_sink.cpp index 790629336a..29e353fe46 100644 --- a/src/audio_core/cubeb_sink.cpp +++ b/src/audio_core/cubeb_sink.cpp @@ -56,7 +56,8 @@ CubebSink::CubebSink(std::string target_device_name) : impl(std::make_uniquedevid;