Skip to content

Commit

Permalink
fix: index of the selected track (#4012)
Browse files Browse the repository at this point in the history
  • Loading branch information
seyedmostafahasani authored Jul 24, 2024
1 parent 6189080 commit fb1d6bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,7 @@ private Track exoplayerTrackToGenericTrack(Format format, int trackIndex, TrackS
if (format.sampleMimeType != null) track.setMimeType(format.sampleMimeType);
if (format.language != null) track.setLanguage(format.language);
if (format.label != null) track.setTitle(format.label);
track.setSelected(isTrackSelected(selection, group, 0));
track.setSelected(isTrackSelected(selection, group, trackIndex));
return track;
}

Expand Down

0 comments on commit fb1d6bd

Please sign in to comment.