[pulseaudio-commits] src/modules

Tanu Kaskinen tanuk at kemper.freedesktop.org
Tue Mar 8 08:21:42 UTC 2016


 src/modules/module-card-restore.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit ff85bc437c1ab40d4e83bacf31e96c105639f6d8
Author: Tanu Kaskinen <tanuk at iki.fi>
Date:   Fri Mar 4 15:16:54 2016 +0200

    card-restore: save the database when shutting down
    
    If u->save_time_event is non-NULL when the module is being unloaded,
    it means that there are some changes to the database that haven't
    yet been flushed to the disk.
    
    Acked-by: David Henningsson <david.henningsson at canonical.com>

diff --git a/src/modules/module-card-restore.c b/src/modules/module-card-restore.c
index f906843..2660a2b 100644
--- a/src/modules/module-card-restore.c
+++ b/src/modules/module-card-restore.c
@@ -608,8 +608,10 @@ void pa__done(pa_module*m) {
     if (!(u = m->userdata))
         return;
 
-    if (u->save_time_event)
+    if (u->save_time_event) {
         u->core->mainloop->time_free(u->save_time_event);
+        pa_database_sync(u->database);
+    }
 
     if (u->database)
         pa_database_close(u->database);



More information about the pulseaudio-commits mailing list