aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthexai <58434170+thexai@users.noreply.github.com>2023-09-06 16:17:46 +0200
committerthexai <58434170+thexai@users.noreply.github.com>2023-09-06 16:17:46 +0200
commitacdd771101b0a21cbc9876c7b02e1952fd4860a6 (patch)
treea79b16e4544301ce1aef58b54bceabaae3181aa6
parentaffc26ca1244ccf9d9b7042c8c3743827a6f353f (diff)
downloadxbmc-acdd771101b0a21cbc9876c7b02e1952fd4860a6.tar.xz
[ActiveAE] Fix parsing audio devices names when names contains ':' character
-rw-r--r--xbmc/cores/AudioEngine/AESinkFactory.cpp2
-rw-r--r--xbmc/cores/AudioEngine/Utils/AEDeviceInfo.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/cores/AudioEngine/AESinkFactory.cpp b/xbmc/cores/AudioEngine/AESinkFactory.cpp
index 6f27372de7..2504e032de 100644
--- a/xbmc/cores/AudioEngine/AESinkFactory.cpp
+++ b/xbmc/cores/AudioEngine/AESinkFactory.cpp
@@ -63,7 +63,7 @@ AESinkDevice CAESinkFactory::ParseDevice(const std::string& device)
if (!found)
dev.driver.clear();
- pos = dev.name.find_first_of(':');
+ pos = dev.name.find_last_of('|');
if (pos != std::string::npos)
{
diff --git a/xbmc/cores/AudioEngine/Utils/AEDeviceInfo.cpp b/xbmc/cores/AudioEngine/Utils/AEDeviceInfo.cpp
index 8f8f21d97f..87dc678f5f 100644
--- a/xbmc/cores/AudioEngine/Utils/AEDeviceInfo.cpp
+++ b/xbmc/cores/AudioEngine/Utils/AEDeviceInfo.cpp
@@ -76,7 +76,7 @@ std::string CAEDeviceInfo::ToDeviceString(const std::string& driver) const
const std::string fn = GetFriendlyName();
if (!fn.empty())
- device += ":" + fn;
+ device += "|" + fn;
return device;
}