move default device from runtime to state dir
authorLennart Poettering <lennart@poettering.net>
Wed, 21 May 2008 22:46:21 +0000 (22:46 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 May 2008 22:46:21 +0000 (22:46 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2478 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/modules/module-default-device-restore.c

index f0d0fe6..1e7fa69 100644 (file)
@@ -163,10 +163,10 @@ int pa__init(pa_module *m) {
     u = pa_xnew0(struct userdata, 1);
     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;
 
-    if (!(u->source_filename = pa_runtime_path(DEFAULT_SOURCE_FILE)))
+    if (!(u->source_filename = pa_state_path(DEFAULT_SOURCE_FILE)))
         goto fail;
 
     load(u);