mirror of
https://github.com/samsonjs/media.git
synced 2026-04-05 11:15:46 +00:00
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 |
||
|---|---|---|
| .. | ||
| all | ||
| core | ||
| dash | ||
| hls | ||
| smoothstreaming | ||
| ui | ||