summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-02-01 13:49:19 +0100
committerMax Kellermann <max@musicpd.org>2020-02-01 14:02:43 +0100
commit4f22f4d357c99ba4163a496882f813138db3c39b (patch)
treedd1d76658ca8466f1cbb220d49bd8e728aeb9df1 /src/input
parent4c52001a350ca573fd19f910f2f808d5f31cf95b (diff)
*: use nullptr instead of NULL
Diffstat (limited to 'src/input')
-rw-r--r--src/input/plugins/AlsaInputPlugin.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/input/plugins/AlsaInputPlugin.cxx b/src/input/plugins/AlsaInputPlugin.cxx
index 98ebd4d92..aee525cc6 100644
--- a/src/input/plugins/AlsaInputPlugin.cxx
+++ b/src/input/plugins/AlsaInputPlugin.cxx
@@ -355,18 +355,18 @@ AlsaInputStream::ConfigureCapture(AudioFormat audio_format)
snd_pcm_hw_params_get_buffer_size_min(hw_params, &buffer_size_min);
snd_pcm_hw_params_get_buffer_size_max(hw_params, &buffer_size_max);
unsigned buffer_time_min, buffer_time_max;
- snd_pcm_hw_params_get_buffer_time_min(hw_params, &buffer_time_min, 0);
- snd_pcm_hw_params_get_buffer_time_max(hw_params, &buffer_time_max, 0);
+ snd_pcm_hw_params_get_buffer_time_min(hw_params, &buffer_time_min, nullptr);
+ snd_pcm_hw_params_get_buffer_time_max(hw_params, &buffer_time_max, nullptr);
FormatDebug(alsa_input_domain, "buffer: size=%u..%u time=%u..%u",
(unsigned)buffer_size_min, (unsigned)buffer_size_max,
buffer_time_min, buffer_time_max);
snd_pcm_uframes_t period_size_min, period_size_max;
- snd_pcm_hw_params_get_period_size_min(hw_params, &period_size_min, 0);
- snd_pcm_hw_params_get_period_size_max(hw_params, &period_size_max, 0);
+ snd_pcm_hw_params_get_period_size_min(hw_params, &period_size_min, nullptr);
+ snd_pcm_hw_params_get_period_size_max(hw_params, &period_size_max, nullptr);
unsigned period_time_min, period_time_max;
- snd_pcm_hw_params_get_period_time_min(hw_params, &period_time_min, 0);
- snd_pcm_hw_params_get_period_time_max(hw_params, &period_time_max, 0);
+ snd_pcm_hw_params_get_period_time_min(hw_params, &period_time_min, nullptr);
+ snd_pcm_hw_params_get_period_time_max(hw_params, &period_time_max, nullptr);
FormatDebug(alsa_input_domain, "period: size=%u..%u time=%u..%u",
(unsigned)period_size_min, (unsigned)period_size_max,
period_time_min, period_time_max);