media/libraries
claincly abd96598d9 Add a timer to end a video stream prematurely in ExtTexMgr
Partially roll forward of 5c29abbbf4, and adds some extra logic

Changes to the original CL

The original logic (a66f08ba97) fails in the following case:

> This is only seem on emulators.

- EOS is sent to ExtTexMgr
- The timer starts
- One frame arrives on SurfaceTexture, reset the timer
  - The frame is sent for processing, now `availablFrames == 0`
- One frame arrives on Surface, reset the timer
  - The frame is kept on SurfaceTexture for the downstream shader doesn't have
    capacity, `availablFrames == 1`
- Timer times out as the downstream processor doesn't report being able to take
  another frame.
  - Although there's a frame available on the SurfaceTexture

This is solved by having the force EOS logic clear all the frames that the
SurfaceTexture holds. This also ensures the first frame dequeued from the next
stream isn't from the previous stream.

PiperOrigin-RevId: 540023359
2023-06-14 20:34:17 +01:00
..
cast Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
common Version bump to media3:1.1.0-rc01 2023-06-12 14:14:33 +00:00
container Add support for passing custom metadata via transformer 2023-06-09 13:51:15 +00:00
database Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_cronet Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_okhttp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_av1 Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_ffmpeg Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_flac Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_midi Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_opus Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder_vp9 Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
effect Add a timer to end a video stream prematurely in ExtTexMgr 2023-06-14 20:34:17 +01:00
exoplayer Release ExoPlayer instances in ExoPlayerTest 2023-06-14 20:25:53 +01:00
exoplayer_dash Do not reset period uid when DashMediaSource is released 2023-06-09 14:03:22 +00:00
exoplayer_hls Throw exception when TimestampAdjuster initialization hits timeout 2023-06-10 20:25:05 +00:00
exoplayer_ima Fix splitting ad playback state for partial ad group when joining 2023-06-10 20:23:56 +00:00
exoplayer_rtsp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
exoplayer_smoothstreaming Implement logging support for Common Media Client Data (CMCD) 2023-06-09 14:01:25 +00:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Require the list returned by SubtitleParser to be sorted by timestamp 2023-06-10 20:21:29 +00:00
muxer Enable nullness checker for Muxer module androidTest library 2023-06-08 12:48:03 +00:00
session Notify listeners of error changes when masking in MediaControllerImplBase 2023-06-14 20:32:55 +01:00
test_data Add test for per-MediaItem effect 2023-06-14 20:27:37 +01:00
test_exoplayer_playback Add android.namespace to all build.gradle files 2023-05-19 17:19:15 +01:00
test_session_common Rollback of 2a6f893fba 2023-06-06 18:06:46 +00:00
test_session_current Notify listeners of error changes when masking in MediaControllerImplBase 2023-06-14 20:32:55 +01:00
test_utils Suppress warnings in preparation for Checker Framework version 3.34.0-eisop1 2023-06-14 20:29:07 +01:00
test_utils_robolectric Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
transformer Add test for per-MediaItem effect 2023-06-14 20:27:37 +01:00
ui Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
ui_leanback Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00