[vlc-commits] [Git][videolan/vlc][master] amem: make sure the PTS is in microseconds

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Sat Aug 13 09:24:02 UTC 2022



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


Commits:
996d3111 by Steve Lhomme at 2022-08-13T09:07:15+00:00
amem: make sure the PTS is in microseconds

This is supposed to be used with libvlc_delay() which takes dates in the same
format as libvlc_clock(), which is microseconds.

- - - - -


1 changed file:

- modules/audio_output/amem.c


Changes:

=====================================
modules/audio_output/amem.c
=====================================
@@ -105,7 +105,7 @@ static void Play(audio_output_t *aout, block_t *block, vlc_tick_t date)
     aout_sys_t *sys = aout->sys;
 
     vlc_mutex_lock(&sys->lock);
-    sys->play(sys->opaque, block->p_buffer, block->i_nb_samples, date);
+    sys->play(sys->opaque, block->p_buffer, block->i_nb_samples, US_FROM_VLC_TICK(date));
     vlc_mutex_unlock(&sys->lock);
     block_Release (block);
 }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/996d3111143a2288f46e06fa0387cd99719f6361

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


VideoLAN code repository instance


More information about the vlc-commits mailing list