mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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 {
|
public static final class ItemData {
|
||||||
|
|
||||||
/** Holds no media information. */
|
/** 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. */
|
/** The duration of the item in microseconds, or {@link C#TIME_UNSET} if unknown. */
|
||||||
public final long durationUs;
|
public final long durationUs;
|
||||||
|
|
@ -42,13 +46,6 @@ import java.util.Arrays;
|
||||||
/** Whether the item is live content, or {@code false} if unknown. */
|
/** Whether the item is live content, or {@code false} if unknown. */
|
||||||
public final boolean isLive;
|
public final boolean isLive;
|
||||||
|
|
||||||
private ItemData() {
|
|
||||||
this(
|
|
||||||
/* durationUs= */ C.TIME_UNSET,
|
|
||||||
/* defaultPositionUs= */ C.TIME_UNSET,
|
|
||||||
/* isLive= */ false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an instance.
|
* Creates an instance.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue