[vlc-commits] audio_output: coreaudio: match return type

Alexandre Janniaux git at videolan.org
Tue Aug 18 15:09:30 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Jul 23 11:50:10 2020 +0200| [40e8883b4dc96e01a5b43147471317a60185cf2c] | committer: Alexandre Janniaux

audio_output: coreaudio: match return type

The function is returning size_t so store in size_t too.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=40e8883b4dc96e01a5b43147471317a60185cf2c
---

 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);



More information about the vlc-commits mailing list