Fix a bug with MetadataRetriever getMedatadata query.
When getMedatadata from an ExtractorMediaPeriod, due to the MediaPeriod refreshing its Timeline twice, the MetadataRetriever may wrongly reset periodIndex of the current trackGroup to C.TIME_UNSET, which makes it unable to handle subsequent metadata queries. This CL changes the MetadataRetriever to keep track of periodUid of the current trackGroup instead of period index. PeriodUid is not changed on timeline refreshing, so is not prone the existing problem. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201969350
Showing
with
4 additions
and
0 deletions
No preview for this file type
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment