This avoids an assert in pa_sink_input_get_volume() when connecting a passthrough stream. --- src/modules/module-stream-restore.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/modules/module-stream-restore.c b/src/modules/module-stream-restore.c index 9c94583..c984f18 100644 --- a/src/modules/module-stream-restore.c +++ b/src/modules/module-stream-restore.c @@ -1168,7 +1168,7 @@ static void subscribe_callback(pa_core *c, pa_subscription_event_type_t t, uint3 created_new_entry = FALSE; } - if (sink_input->save_volume) { + if (sink_input->save_volume && pa_sink_input_is_volume_readable(sink_input)) { pa_assert(sink_input->volume_writable); entry.channel_map = sink_input->channel_map; -- 1.7.4.1