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
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to