]> code.delx.au - pulseaudio/commitdiff
formats: Use correct API to check for passthrough streams
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Wed, 17 Aug 2011 09:28:23 +0000 (14:58 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Wed, 17 Aug 2011 17:38:37 +0000 (23:08 +0530)
src/pulsecore/sink-input.c
src/pulsecore/source-output.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;
     }
index cd2e126faaadf116cb80fe803aca5bac46717c43..d99bafed341c2a3c867cf27883aa1a28ad42539f 100644 (file)
@@ -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;
     }