media/libraries
kimvde a1d2310170 Fix stuck player after seek
Seeking was causing the player to hang in the following scenario:
1. The surfaceTexture's onFrameAvailableListener is called in
   ExternalTextureManager to notify that a new frame is available.
2. This call submits a task on the GL thread.
3. A seek is performed and DefaultVideoFrameProcessor.flush() is called
   before the task submitted in 2 is executed.
4. DefaultVideoFrameProcessor.flush() flushes the task executor, so that
   the task submitted in 2 never gets executed.
5. Once the seek is over, the first frame is registered and rendered on
   the surface texture.
6. Playback hangs because the onFrameAvailableListener is never called
   for this new frame. This is because surfaceTexture.updateTexImage()
   was never called on the frame that became available in 1.

This fix is making sure that the task submitted in 2 always gets executed.

Issue: androidx/media#1535
PiperOrigin-RevId: 671389215
2024-09-05 08:54:55 -07:00
..
cast Do not clear the timeline after the Cast receiver disconnects 2024-09-04 10:42:53 -07:00
common Fix Format.toLogString handling of new Format.labels field 2024-09-04 11:02:36 -07:00
common_ktx Add jvmTarget and kotlin-android plugin to common_ktx module 2024-08-15 10:36:10 -07:00
container Rename Atom to Mp4Box, and move it to container module 2024-08-15 05:44:32 -07:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Downscale bitmaps during decoding in Transformer 2024-09-03 07:53:13 -07:00
datasource_cronet Run CronetDataSource contract test for all Cronet providers 2024-08-01 10:49:37 -07:00
datasource_okhttp Automated Code Change 2024-08-07 12:28:25 -07:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder MediaCodecVideoRenderer skips decoder inputs unused as reference 2024-07-09 03:43:06 -07:00
decoder_av1 Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_ffmpeg Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_flac Remove Multidex 2024-07-24 16:17:00 +01:00
decoder_iamf Fix WrongConstant lint failure for IamfDecoder#OUTPUT_PCM_ENCODING 2024-09-02 10:20:55 -07:00
decoder_midi Add missing module registrations 2024-05-23 04:50:01 -07:00
decoder_opus Remove Multidex 2024-07-24 16:17:00 +01:00
decoder_vp9 Remove Multidex 2024-07-24 16:17:00 +01:00
effect Fix stuck player after seek 2024-09-05 08:54:55 -07:00
exoplayer Move MCR CryptoException handling to top-level render() method 2024-09-04 06:44:21 -07:00
exoplayer_dash Report initial discontinuity for DASH periods that require preroll 2024-08-29 01:57:15 -07:00
exoplayer_hls Automated Code Change 2024-08-07 12:28:25 -07:00
exoplayer_ima Remove Multidex 2024-07-24 16:17:00 +01:00
exoplayer_rtsp Import correct nullable annotation 2024-08-28 10:54:29 -07:00
exoplayer_smoothstreaming Report initial discontinuity for DASH periods that require preroll 2024-08-29 01:57:15 -07:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Gracefully handle unexpected non-MP3 trailing data 2024-09-02 02:10:13 -07:00
muxer Use simpler timestamps in tests for readability 2024-09-04 03:35:54 -07:00
session Handle HEADSETHOOK as 'play' in MediaButtonReceiver.onReceive 2024-08-13 07:53:04 -07:00
test_data Add Mp4PlaybackTest for sample with edit list (edts box) 2024-09-03 08:43:33 -07:00
test_exoplayer_playback Revert erroneous changes 2024-07-24 16:17:02 +01:00
test_session_common Improve automatic error replication for legacy browsers 2024-07-01 09:47:25 -07:00
test_session_current Revert changes to androidx.media3.session.legacy 2024-07-24 16:17:02 +01:00
test_utils Reformat and tweak javadoc 2024-08-29 10:25:06 +01:00
test_utils_robolectric Bump minSdk to 21 and remove resulting simple dead code 2024-07-12 08:11:01 -07:00
transformer Rename last sample duration behaviour enums 2024-09-03 08:15:23 -07:00
ui Make PlayerView Compose workaround opt-in 2024-09-04 07:24:27 -07:00
ui_leanback Bump effect and leanback minSdk to 19 2024-01-10 07:22:00 -08:00
lint.xml Update recommended way to suppress @UnstableApi errors in lint.xml 2023-11-15 02:34:40 -08:00