media/library
olly 047e0eb645 Renames to prepare for upcoming media buffer changes
Currently, media is discarded from DefaultTrackOutput
and SampleMetadataQueue as soon as it's been read. In
upcoming changes we'll decouple discard and read. This
will make it possible to retain already-read media in
these buffer classes, and allow the read position to
be moved backward as far as media is retained. This is
important for fixing an edge case around 608/EMSG
tracks, and could also underpin future features like
allowing retaining of X-seconds past media in the
buffer.

This change renames some variables and methods to
prepare for the upcoming changes. read/write indices
are renamed to start/end. The upcoming changes will
add a read index that's between the two. isEmpty is
inverted and renamed to hasNextSample, since it will
be possible to not have a next sample (because the
read index == end index) but for the buffer to not
be empty (because start index < read index).

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=158409630
2017-06-12 10:24:42 +01:00
..
all Consolidate version codes in root gradle file 2017-04-18 19:42:27 +01:00
core Renames to prepare for upcoming media buffer changes 2017-06-12 10:24:42 +01:00
dash Fix ArrayIndexOutOfBoundsException in DashMediaPeriod 2017-06-12 10:21:09 +01:00
hls Renames to prepare for upcoming media buffer changes 2017-06-12 10:24:42 +01:00
smoothstreaming Move playback test utils to testutils. 2017-06-12 10:18:50 +01:00
ui Expose current scrubber position through onScrubStart 2017-06-06 18:11:58 +01:00