move default device from runtime to state dir

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2478 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2008-05-21 22:46:21 +00:00
parent 32c53f303a
commit 9f86d0f543

View file

@ -163,10 +163,10 @@ int pa__init(pa_module *m) {
u = pa_xnew0(struct userdata, 1); u = pa_xnew0(struct userdata, 1);
u->core = m->core; u->core = m->core;
if (!(u->sink_filename = pa_runtime_path(DEFAULT_SINK_FILE))) if (!(u->sink_filename = pa_state_path(DEFAULT_SINK_FILE)))
goto fail; goto fail;
if (!(u->source_filename = pa_runtime_path(DEFAULT_SOURCE_FILE))) if (!(u->source_filename = pa_state_path(DEFAULT_SOURCE_FILE)))
goto fail; goto fail;
load(u); load(u);