Skip to content

Commit

Permalink
Make TrackSelectionOverride.getTrackType public
Browse files Browse the repository at this point in the history
This method is helpful when iterating the list of track overrides
to figure out which type the override applies to.

Issue: #9665
PiperOrigin-RevId: 409108977
  • Loading branch information
tonihei committed Nov 11, 2021
1 parent 86f109c commit 954531b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ public int hashCode() {
return trackGroup.hashCode() + 31 * trackIndices.hashCode();
}

private @C.TrackType int getTrackType() {
/** Returns the {@link C.TrackType} of the overriden track group. */
public @C.TrackType int getTrackType() {
return MimeTypes.getTrackType(trackGroup.getFormat(0).sampleMimeType);
}

Expand Down

0 comments on commit 954531b

Please sign in to comment.