mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
stream-restore: Check for readability before reading volume
This avoids an assert in pa_sink_input_get_volume() when connecting a passthrough stream.
This commit is contained in:
parent
a44092d39d
commit
837e0a9606
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue