diff options
author | Max Kellermann <max@duempel.org> | 2014-02-24 20:31:29 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-24 20:31:38 +0100 |
commit | a1509876de8541faaaf803383f6f52cfdf93918e (patch) | |
tree | 8cfbaed3375bbace0119b70df2448b9e3f51966d /src/output/plugins/PulseOutputPlugin.cxx | |
parent | 0f2cf51f43b402487b9f4086edbe5dc954cea9ca (diff) | |
download | mpd-a1509876de8541faaaf803383f6f52cfdf93918e.tar.gz mpd-a1509876de8541faaaf803383f6f52cfdf93918e.tar.xz mpd-a1509876de8541faaaf803383f6f52cfdf93918e.zip |
output/pulse: use setenv() instead of g_setenv()
There is no advantage in using g_setenv().
Diffstat (limited to 'src/output/plugins/PulseOutputPlugin.cxx')
-rw-r--r-- | src/output/plugins/PulseOutputPlugin.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/output/plugins/PulseOutputPlugin.cxx b/src/output/plugins/PulseOutputPlugin.cxx index 51c8cd828..31635bcaf 100644 --- a/src/output/plugins/PulseOutputPlugin.cxx +++ b/src/output/plugins/PulseOutputPlugin.cxx @@ -26,8 +26,6 @@ #include "util/Domain.hxx" #include "Log.hxx" -#include <glib.h> - #include <pulse/thread-mainloop.h> #include <pulse/context.h> #include <pulse/stream.h> @@ -38,6 +36,7 @@ #include <assert.h> #include <stddef.h> +#include <stdlib.h> #define MPD_PULSE_NAME "Music Player Daemon" @@ -327,7 +326,7 @@ pulse_output_init(const config_param ¶m, Error &error) { PulseOutput *po; - g_setenv("PULSE_PROP_media.role", "music", true); + setenv("PULSE_PROP_media.role", "music", true); po = new PulseOutput(); if (!po->base.Configure(param, error)) { |