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 22de3bc..4cd51d7 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 cd2e126..d99bafe 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;
     }