VLC audio sync breaks on re-launch of backgrounded app
Description
When using VLC for Android on my Google Pixel 4A (on both CopperheadOS and CalyxOS, based on Android 11), watching videos works properly the first time the app is launched after boot, but not after that. Upon backgrounding the app with a video paused an extended period later (multiple hours, usually) the video starts playing with no audio, and audio kicks in 2-3s later and is delayed by ~1s. This is not fixable without a force stop of the app and a relaunch.
Expected behavior
Resuming a video after backgrounding the app resumes video with audio and video in-sync.
Actual behavior
Resuming a video after backgrounding the app resumes video with audio and video out of sync.
Steps to reproduce
- Launch VLC from cold boot/force stop
- Start video
- Wait a few hours
- Open VLC app again and start paused video
- Video and audio will be out of sync
Screenshot / video
Will try to capture on video and add later.
Context
App version
VLC 3.3.4
Android version
Android 11, CalyxOS 2.2.0 (also occurred on CopperheadOS based on Android 11)
Device model
Google Pixel 4A
App mode
Smartphone