]> code.delx.au - pulseaudio/commitdiff
alsa-sink: Get rid of a compiler warning regarding rewind_safeguard type.
authorTanu Kaskinen <tanuk@iki.fi>
Tue, 24 Aug 2010 14:47:25 +0000 (17:47 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Tue, 24 Aug 2010 15:19:49 +0000 (18:19 +0300)
GCC gave a warning, because the pointer given to pa_modargs_get_value_u32() had
type size_t instead of uint32_t.

src/modules/alsa/alsa-sink.c

index 80fdcaa2ee8463b32935e31b6852c96933b3f018..05477dc4bae9ee363d2e3589d9f2b23df4e1ad37 100644 (file)
@@ -1681,9 +1681,9 @@ pa_sink *pa_alsa_sink_new(pa_module *m, pa_modargs *ma, const char*driver, pa_ca
     const char *dev_id = NULL;
     pa_sample_spec ss, requested_ss;
     pa_channel_map map;
-    uint32_t nfrags, frag_size, buffer_size, tsched_size, tsched_watermark;
+    uint32_t nfrags, frag_size, buffer_size, tsched_size, tsched_watermark, rewind_safeguard;
     snd_pcm_uframes_t period_frames, buffer_frames, tsched_frames;
-    size_t frame_size, rewind_safeguard;
+    size_t frame_size;
     pa_bool_t use_mmap = TRUE, b, use_tsched = TRUE, d, ignore_dB = FALSE;
     pa_sink_new_data data;
     pa_alsa_profile_set *profile_set = NULL;