reverse server order for PULSE_SERVER x11 property, to follow order in which modules are loaded

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1985 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2007-10-29 20:30:53 +00:00
parent cc883852bc
commit 43b5c65457

View file

@ -130,7 +130,10 @@ int pa__init(pa_module*m) {
if (!(l = pa_property_get(m->core, PA_NATIVE_SERVER_PROPERTY_NAME))) if (!(l = pa_property_get(m->core, PA_NATIVE_SERVER_PROPERTY_NAME)))
goto fail; goto fail;
l = pa_strlist_reverse(l);
s = pa_strlist_tostring(l); s = pa_strlist_tostring(l);
l = pa_strlist_reverse(l);
pa_x11_set_prop(pa_x11_wrapper_get_display(u->x11_wrapper), "PULSE_SERVER", s); pa_x11_set_prop(pa_x11_wrapper_get_display(u->x11_wrapper), "PULSE_SERVER", s);
pa_xfree(s); pa_xfree(s);
@ -192,4 +195,3 @@ void pa__done(pa_module*m) {
pa_xfree(u->id); pa_xfree(u->id);
pa_xfree(u); pa_xfree(u);
} }