media/library
ibaker 7474547e0f Don't clear the exception in SimpleDecoder.flush()
Clearing the exception puts the SimpleDecoder into a silent failure
state - the decoder thread is dead (because decode() has returned
false) but it's still possible to queue buffers to the decoder (they
just never get decoded). This partially reverts
4107375c9d

Also always recreate the decoder when handling an error in TextRenderer

This ensures we can try and decode a later subtitle sample after
encountering a decode error. This behaviour is what nulling out the
exception in SimpleDecoder.flush() was trying to achieve. We need to
ensure we don't start passing data to the new decoder until we've
hit the next key frame, so we throw away any non-keyframe samples
inside TextRenderer#render().

Issue: #7590
PiperOrigin-RevId: 319785908
2020-07-06 16:46:58 +01:00
..
all Move common gradle setup to a setting file. 2020-06-26 11:13:25 +01:00
common Add some missing nullness assertions. 2020-07-03 15:31:30 +01:00
core Don't clear the exception in SimpleDecoder.flush() 2020-07-06 16:46:58 +01:00
dash Rename some white/blacklist occurrences in core library 2020-07-06 16:43:36 +01:00
extractor Miscellaneous fixes to FragmentedMp4Extractor 2020-07-06 16:46:58 +01:00
hls Rename some white/blacklist occurences in HLS library 2020-07-06 16:43:16 +01:00
smoothstreaming Rename some white/blacklist occurrences in core library 2020-07-06 16:43:36 +01:00
ui Increase char limits for some string translations 2020-07-03 09:03:24 +01:00
README.md Tweak and add READMEs + remove refs to V1 2017-08-17 22:59:34 +01:00

ExoPlayer library

The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.