aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-25 11:27:22 -0800
committerChris Robinson <[email protected]>2018-12-25 11:27:22 -0800
commit0314370eb58303bf0176b3222044bf27739ee5f5 (patch)
treee5f5dab4bbcde138d6ad885be1c6c3e5a027491c /Alc/backends
parent208ea76922e8d69dc9ad93cbb0cf43634d9782a4 (diff)
Cache the process binary path and name
Diffstat (limited to 'Alc/backends')
-rw-r--r--Alc/backends/pulseaudio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp
index 8428b9d8..16e64cdf 100644
--- a/Alc/backends/pulseaudio.cpp
+++ b/Alc/backends/pulseaudio.cpp
@@ -406,7 +406,7 @@ pa_context *connect_context(pa_threaded_mainloop *loop, ALboolean silent)
{
const char *name{"OpenAL Soft"};
- PathNamePair binname = GetProcBinary();
+ const PathNamePair &binname = GetProcBinary();
if(!binname.fname.empty())
name = binname.fname.c_str();