]> code.delx.au - pulseaudio/commitdiff
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 f0d0fe6c2098844dfa7a42c0d7404bc06b3f9056..1e7fa6914c00e6dd5d18045abba1700a75808113 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);