media/library
olly 078c57413b Correctly reset the upstream format from SampleQueues in HLS
When resetting a SampleQueue, by default the upstream format
is not cleared. This is necessary for progressive playbacks,
since (a) the formats never change, and (b) the extractors
only output them once. So when a seek occurs, it's necessary
to clear all sample data from the queue, but retain the current
upstream format.

Uniquely for HLS, the media in a SampleQueue that we may read
from can be in a format not supported by the consuming renderers.
We clear all the sample data from the queue in this case, but
not the upstream format. Since we have an optimization that
allows the upstream format to be read in advance of another
sample being written into the queue, this can result in an
unsupported format being read by a consuming renderer. This
change ensures the upstream format is correctly cleared in the
problematic case.

Issue: #3079

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=162360267
2017-07-19 14:13:09 +01:00
..
all Make it easier to use ExoPlayer modules in other projects II 2017-06-28 22:26:05 +01:00
core Correctly reset the upstream format from SampleQueues in HLS 2017-07-19 14:13:09 +01:00
dash Move getBufferedPositionUs into SequenceableLoader. 2017-07-19 14:08:59 +01:00
hls Correctly reset the upstream format from SampleQueues in HLS 2017-07-19 14:13:09 +01:00
smoothstreaming Move getBufferedPositionUs into SequenceableLoader. 2017-07-19 14:08:59 +01:00
ui Media session extension to connect ExoPlayer with the MediaSession of the 2017-07-17 23:22:41 +01:00