mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Inline redundant constructor
PiperOrigin-RevId: 376005620
This commit is contained in:
parent
85e4137b81
commit
8f04d36f59
1 changed files with 5 additions and 8 deletions
|
|
@ -31,7 +31,11 @@ import java.util.Arrays;
|
|||
public static final class ItemData {
|
||||
|
||||
/** Holds no media information. */
|
||||
public static final ItemData EMPTY = new ItemData();
|
||||
public static final ItemData EMPTY =
|
||||
new ItemData(
|
||||
/* durationUs= */ C.TIME_UNSET,
|
||||
/* defaultPositionUs= */ C.TIME_UNSET,
|
||||
/* isLive= */ false);
|
||||
|
||||
/** The duration of the item in microseconds, or {@link C#TIME_UNSET} if unknown. */
|
||||
public final long durationUs;
|
||||
|
|
@ -42,13 +46,6 @@ import java.util.Arrays;
|
|||
/** Whether the item is live content, or {@code false} if unknown. */
|
||||
public final boolean isLive;
|
||||
|
||||
private ItemData() {
|
||||
this(
|
||||
/* durationUs= */ C.TIME_UNSET,
|
||||
/* defaultPositionUs= */ C.TIME_UNSET,
|
||||
/* isLive= */ false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an instance.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue