[vlc-commits] [Git][videolan/vlc][master] coreaudio: remove invalid assert

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Tue Nov 9 10:54:29 UTC 2021



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
1efb1ff8 by Thomas Guillem at 2021-11-09T10:13:10+00:00
coreaudio: remove invalid assert

Converting 0 frames to 0 ticks is valid.

- - - - -


1 changed file:

- modules/audio_output/coreaudio_common.c


Changes:

=====================================
modules/audio_output/coreaudio_common.c
=====================================
@@ -46,7 +46,6 @@ FramesToBytes(struct aout_sys_common *p_sys, uint64_t i_frames)
 static inline int64_t
 TicksToFrames(struct aout_sys_common *p_sys, vlc_tick_t i_ticks)
 {
-    assert(i_ticks != VLC_TICK_INVALID);
     return samples_from_vlc_tick(i_ticks, p_sys->i_rate);
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1efb1ff8d011127ef75529dc6f94520d050aefb8

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1efb1ff8d011127ef75529dc6f94520d050aefb8
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list