[vlc-devel] [PATCH v2 3/3] audio_output: coreaudio: match return type

Alexandre Janniaux ajanni at videolabs.io
Thu Jul 23 11:50:10 CEST 2020


The function is returning size_t so store in size_t too.
---
 modules/audio_output/coreaudio_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/coreaudio_common.c b/modules/audio_output/coreaudio_common.c
index c5fccdd20f..ac4ff53c50 100644
--- a/modules/audio_output/coreaudio_common.c
+++ b/modules/audio_output/coreaudio_common.c
@@ -170,7 +170,7 @@ ca_Render(audio_output_t *p_aout, uint32_t i_frames, uint64_t i_host_time,
         const vlc_tick_t i_silence_us =
             HostTimeToTick(p_sys, p_sys->i_first_render_host_time - i_host_time);
 
-        const uint64_t i_silence_bytes =
+        const size_t i_silence_bytes =
             FramesToBytes(p_sys, UsToFrames(p_sys, i_silence_us));
         assert(i_silence_bytes <= i_requested);
         memset(p_output, 0, i_silence_bytes);
-- 
2.27.0



More information about the vlc-devel mailing list