Fix build by saving periodIndex to separate variable
This commit is contained in:
parent
5d728abc41
commit
c299748132
@ -804,7 +804,8 @@ public class AnalyticsCollector
|
|||||||
|
|
||||||
/** Updates the queue with a newly created media period. */
|
/** Updates the queue with a newly created media period. */
|
||||||
public void onMediaPeriodCreated(int windowIndex, MediaPeriodId mediaPeriodId) {
|
public void onMediaPeriodCreated(int windowIndex, MediaPeriodId mediaPeriodId) {
|
||||||
boolean isInTimeline = timeline.getIndexOfPeriod(mediaPeriodId.periodUid) != C.INDEX_UNSET;
|
int periodIndex = timeline.getIndexOfPeriod(mediaPeriodId.periodUid);
|
||||||
|
boolean isInTimeline = periodIndex != C.INDEX_UNSET;
|
||||||
MediaPeriodInfo mediaPeriodInfo =
|
MediaPeriodInfo mediaPeriodInfo =
|
||||||
new MediaPeriodInfo(
|
new MediaPeriodInfo(
|
||||||
mediaPeriodId,
|
mediaPeriodId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user