From 87d2054b674a5a232e53a53c9ddfe2a66a084f38 Mon Sep 17 00:00:00 2001 From: ibaker Date: Wed, 8 Sep 2021 14:37:31 +0100 Subject: [PATCH] Update value of C.TRACK_TYPE_NONE to -2 to allow for future 'real' track types. PiperOrigin-RevId: 395460563 --- .../common/src/main/java/com/google/android/exoplayer2/C.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/common/src/main/java/com/google/android/exoplayer2/C.java b/library/common/src/main/java/com/google/android/exoplayer2/C.java index 975a0efd8f..d641c9c8a1 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/C.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/C.java @@ -672,6 +672,8 @@ public final class C { TRACK_TYPE_NONE, }) public @interface TrackType {} + /** A type constant for a fake or empty track. */ + public static final int TRACK_TYPE_NONE = -2; /** A type constant for tracks of unknown type. */ public static final int TRACK_TYPE_UNKNOWN = -1; /** A type constant for tracks of some default type, where the type itself is unknown. */ @@ -688,8 +690,6 @@ public final class C { public static final int TRACK_TYPE_METADATA = 5; /** A type constant for camera motion tracks. */ public static final int TRACK_TYPE_CAMERA_MOTION = 6; - /** A type constant for a fake or empty track. */ - public static final int TRACK_TYPE_NONE = 7; /** * Applications or extensions may define custom {@code TRACK_TYPE_*} constants greater than or * equal to this value.