mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
in addition to per-property env vars PULSE_PROP_xxx look for for a stringified PULSE_PROP env var
This commit is contained in:
parent
b445741ddf
commit
9a27b8f0e8
1 changed files with 10 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ void pa_init_proplist(pa_proplist *p) {
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
#endif
|
#endif
|
||||||
char **e;
|
char **e;
|
||||||
|
const char *pp;
|
||||||
|
|
||||||
pa_assert(p);
|
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)) {
|
if (!pa_proplist_contains(p, PA_PROP_APPLICATION_PROCESS_ID)) {
|
||||||
char t[32];
|
char t[32];
|
||||||
pa_snprintf(t, sizeof(t), "%lu", (unsigned long) getpid());
|
pa_snprintf(t, sizeof(t), "%lu", (unsigned long) getpid());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue