MPEG media playback hangs
Basic info
Audio and/or video playback hangs when playing certain media files. There is no sound, the image is still, and sometimes there is jumping back/forward in the playback. This happens in built-in apps like Gallery and Music as well as third party apps like Vinyl or AudioAnchor.
.mp3
and .mp4
files are affected, but other file formats such as .ogg
Vorbis files are not.
VLC media player is not affected. I think that uses its own audio codec instead of stagefright.
Changing the speed of the playback (and even changing back to 1) seems to fix it as done in https://github.com/zarandya/Beatrate/blob/main/app/src/main/java/com/poupa/vinylmusicplayer/service/MultiPlayer.java#L171
- Device: FP4
- CalyxOS version: 5.7.3
This started happening after the May feature update and continues after the bugfix update.
Steps to reproduce
Open Gallery and try to play an .mp4
file. It doesn't always happen but it usually happens, changing the volume or seeking (by swiping finger left/right) might trigger it.
Expected result
Video plays normally.
Actual result
Video hangs, and sometimes skips.
Logs (if available, they make fixing much easier)
Logcat prints a lot of lines. I grepped for audio https://pastebin.com/Xh2gFFm5