mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
formats: Use correct API to check for passthrough streams
This commit is contained in:
parent
dde09c7fac
commit
adbdb6259b
2 changed files with 2 additions and 2 deletions
|
|
@ -299,7 +299,7 @@ int pa_source_output_new(
|
|||
pa_return_val_if_fail(pa_channel_map_compatible(&data->channel_map, &data->sample_spec), -PA_ERR_INVALID);
|
||||
|
||||
/* Don't restore (or save) stream volume for passthrough streams */
|
||||
if (!pa_format_info_is_pcm(data->format)) {
|
||||
if (!pa_source_output_new_data_is_passthrough(data)) {
|
||||
data->volume_is_set = FALSE;
|
||||
data->volume_factor_is_set = FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue