[vlc-commits] [Git][videolan/vlc][master] audiotrack: fix timing on older devices

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Sep 23 10:58:36 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
daab68e6 by Thomas Guillem at 2024-09-23T10:44:59+00:00
audiotrack: fix timing on older devices

first_pts was not taken into account when using getPlaybackHeadPosition
(Before SDK 19).

Regression from b42481c79ee78c668cafe2e6c8867a8caf47e2ae

- - - - -


1 changed file:

- modules/audio_output/android/audiotrack.c


Changes:

=====================================
modules/audio_output/android/audiotrack.c
=====================================
@@ -1230,7 +1230,7 @@ AudioTrack_ReportTiming( JNIEnv *env, aout_stream_t *stream )
 
     if( frame_us <= 0 )
         return VLC_EGENERIC;
-    aout_stream_TimingReport( stream, now, frame_us );
+    aout_stream_TimingReport( stream, now, frame_us + p_sys->first_pts );
 
     return VLC_SUCCESS;
 }



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/daab68e6f257603587fcccfa911caaf933cfe467
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