module-stream-restore: log error writing volume/mute/device entry to database

This commit is contained in:
Igor V. Kovalenko 2020-10-13 09:50:31 +03:00 committed by Arun Raghavan
parent e0ab9fa4a4
commit 99b2d88282

View file

@ -1441,8 +1441,11 @@ static void subscribe_callback(pa_core *c, pa_subscription_event_type_t t, uint3
pa_log_info("Storing volume/mute/device for stream %s.", name); pa_log_info("Storing volume/mute/device for stream %s.", name);
if (entry_write(u, name, entry, true)) if (entry_write(u, name, entry, true)) {
trigger_save(u); trigger_save(u);
} else {
pa_log_error("Could not store volume/mute/device for stream %s.", name);
}
#ifdef HAVE_DBUS #ifdef HAVE_DBUS
if (created_new_entry) { if (created_new_entry) {