media/libraries
tonihei 56dd0f761d Handle output format changes for empty sample streams correctly
When MediaCodecRenderer is given an empty sample stream, it puts
its output format change tracking in a bad state where we never
process future stream changes because we are waiting for a sample
that doesn't exist.

We can fix this by:
 - Looping the pending output stream changes to see if we processed
   more than one change at once (this fixes the tracking for empty
   sample streams that are not the first in the queue).
 - Checking if none of the previous streams queued any samples in
   onStreamChanged to handle this in the same way as the case
   where we already output all samples (this fixes the problem when
   the empty sample stream comes first in the queue).
 - Also calling onProcessedStreamChange for the case above, which
   was missing previously.

#minor-release

PiperOrigin-RevId: 519226637
(cherry picked from commit b9790e69d7)
2023-04-18 14:56:45 +01:00
..
cast Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
common Ensure ForwardingPlayer users do listener registration correctly 2023-04-18 14:49:09 +01:00
database Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
datasource Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
datasource_cronet Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
datasource_okhttp Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
datasource_rtmp Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
decoder Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
decoder_av1 Add media3 guide entries in README files 2023-03-31 13:36:24 +01:00
decoder_ffmpeg Add media3 guide entries in README files 2023-03-31 13:36:24 +01:00
decoder_flac Add media3 guide entries in README files 2023-03-31 13:36:24 +01:00
decoder_opus Add media3 guide entries in README files 2023-03-31 13:36:24 +01:00
decoder_vp9 Add media3 guide entries in README files 2023-03-31 13:36:24 +01:00
effect Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
exoplayer Handle output format changes for empty sample streams correctly 2023-04-18 14:56:45 +01:00
exoplayer_dash Make DefaultDashChunkSource more robust against empty segment timelines 2023-04-18 14:54:30 +01:00
exoplayer_hls Add media3 guide entries in README files 2023-03-31 13:36:24 +01:00
exoplayer_ima Add media3 guide entries in README files 2023-03-31 13:36:24 +01:00
exoplayer_rtsp Retry RTSP Setup with TCP if response with UDP is UnsupportedTransport 2023-04-18 14:55:46 +01:00
exoplayer_smoothstreaming Add media3 guide entries in README files 2023-03-31 13:36:24 +01:00
exoplayer_workmanager Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
extractor Merge pull request #11064 from haixia-meta:release-v2 2023-04-18 14:54:34 +01:00
session Document that custom commands can only be sent if they are defined 2023-03-14 16:19:24 +00:00
test_data Merge pull request #10793 from fraunhoferfokus:dash-thumbnail-support 2023-02-02 16:47:09 +00:00
test_exoplayer_playback Fix instrumentation tests not working via Gradle 2022-09-20 15:25:38 +00:00
test_session_common Do not assume a valid queue in 3rd party sessions 2023-02-02 13:22:38 +00:00
test_session_current Session: advertise legacy FLAG_HANDLES_QUEUE_COMMANDS 2023-02-02 16:47:10 +00:00
test_utils Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
test_utils_robolectric Fix javadoc links in media README files 2023-03-31 13:35:43 +01:00
transformer Add media3 guide entries in README files 2023-03-31 13:36:24 +01:00
ui Add media3 guide entries in README files 2023-03-31 13:36:24 +01:00
ui_leanback Fix (another) LeanbackPlayerAdapter param name mismatch 2023-02-02 13:22:39 +00:00