]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/sink-input.c
formats: Use correct API to check for passthrough streams
[pulseaudio] / src / pulsecore / sink-input.c
index 22de3bc1cf4856a315f069cad7ea7199d4539c2f..4cd51d72c277ca02d19c29a38e7534388fadac37 100644 (file)
@@ -321,7 +321,7 @@ int pa_sink_input_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_sink_input_new_data_is_passthrough(data)) {
         data->volume_is_set = FALSE;
         data->volume_factor_is_set = FALSE;
     }