projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b445741
)
in addition to per-property env vars PULSE_PROP_xxx look for for a stringified PULSE_...
author
Lennart Poettering
<lennart@poettering.net>
Wed, 4 Feb 2009 16:16:13 +0000
(17:16 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 4 Feb 2009 16:16:13 +0000
(17:16 +0100)
src/pulsecore/proplist-util.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/proplist-util.c
b/src/pulsecore/proplist-util.c
index
4920c27
..
522c7af
100644
(file)
--- a/
src/pulsecore/proplist-util.c
+++ b/
src/pulsecore/proplist-util.c
@@
-41,6
+41,7
@@
void pa_init_proplist(pa_proplist *p) {
extern char **environ;
#endif
char **e;
+ const char *pp;
pa_assert(p);
@@
-75,6
+76,15
@@
void pa_init_proplist(pa_proplist *p) {
}
}
+ if ((pp = getenv("PULSE_PROP"))) {
+ pa_proplist *t;
+
+ if ((t = pa_proplist_from_string(pp))) {
+ pa_proplist_update(p, PA_UPDATE_MERGE, t);
+ pa_proplist_free(t);
+ }
+ }
+
if (!pa_proplist_contains(p, PA_PROP_APPLICATION_PROCESS_ID)) {
char t[32];
pa_snprintf(t, sizeof(t), "%lu", (unsigned long) getpid());