mirror of
https://github.com/samsonjs/media.git
synced 2026-04-11 12:15:47 +00:00
Upgrade dackka and fix some generation errors
#minor-release
PiperOrigin-RevId: 484483080
(cherry picked from commit 3069d8130b)
This commit is contained in:
parent
2a809dcebd
commit
690ebb3dcd
4 changed files with 10 additions and 10 deletions
|
|
@ -21,7 +21,7 @@ class CombinedJavadocPlugin implements Plugin<Project> {
|
|||
|
||||
// Dackka snapshots are listed at https://androidx.dev/dackka/builds.
|
||||
static final String DACKKA_JAR_URL =
|
||||
"https://androidx.dev/dackka/builds/8003564/artifacts/dackka-0.0.14.jar"
|
||||
"https://androidx.dev/dackka/builds/9221390/artifacts/dackka-1.0.4-all.jar"
|
||||
|
||||
@Override
|
||||
void apply(Project project) {
|
||||
|
|
|
|||
|
|
@ -575,10 +575,10 @@ public class SampleQueue implements TrackOutput {
|
|||
// TrackOutput implementation. Called by the loading thread.
|
||||
|
||||
@Override
|
||||
public final void format(Format unadjustedUpstreamFormat) {
|
||||
Format adjustedUpstreamFormat = getAdjustedUpstreamFormat(unadjustedUpstreamFormat);
|
||||
public final void format(Format format) {
|
||||
Format adjustedUpstreamFormat = getAdjustedUpstreamFormat(format);
|
||||
upstreamFormatAdjustmentRequired = false;
|
||||
this.unadjustedUpstreamFormat = unadjustedUpstreamFormat;
|
||||
unadjustedUpstreamFormat = format;
|
||||
boolean upstreamFormatChanged = setUpstreamFormat(adjustedUpstreamFormat);
|
||||
if (upstreamFormatChangeListener != null && upstreamFormatChanged) {
|
||||
upstreamFormatChangeListener.onUpstreamFormatChanged(adjustedUpstreamFormat);
|
||||
|
|
|
|||
|
|
@ -171,8 +171,8 @@ public final class AviExtractor implements Extractor {
|
|||
}
|
||||
|
||||
@Override
|
||||
public int read(ExtractorInput input, PositionHolder positionHolder) throws IOException {
|
||||
if (resolvePendingReposition(input, positionHolder)) {
|
||||
public int read(ExtractorInput input, PositionHolder seekPosition) throws IOException {
|
||||
if (resolvePendingReposition(input, seekPosition)) {
|
||||
return RESULT_SEEK;
|
||||
}
|
||||
switch (state) {
|
||||
|
|
@ -305,14 +305,14 @@ public final class AviExtractor implements Extractor {
|
|||
* {@link ExtractorInput#getPosition() current position}, but not further than {@link
|
||||
* #RELOAD_MINIMUM_SEEK_DISTANCE}.
|
||||
*/
|
||||
private boolean resolvePendingReposition(ExtractorInput input, PositionHolder positionHolder)
|
||||
private boolean resolvePendingReposition(ExtractorInput input, PositionHolder seekPosition)
|
||||
throws IOException {
|
||||
boolean needSeek = false;
|
||||
if (pendingReposition != C.POSITION_UNSET) {
|
||||
long currentPosition = input.getPosition();
|
||||
if (pendingReposition < currentPosition
|
||||
|| pendingReposition > currentPosition + RELOAD_MINIMUM_SEEK_DISTANCE) {
|
||||
positionHolder.position = pendingReposition;
|
||||
seekPosition.position = pendingReposition;
|
||||
needSeek = true;
|
||||
} else {
|
||||
// The distance to the target position is short enough that it makes sense to just skip the
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ public final class MediaNotification {
|
|||
/**
|
||||
* Creates a new {@link MediaNotification}.
|
||||
*
|
||||
* @param session The media session.
|
||||
* @param mediaSession The media session.
|
||||
* @param actionFactory The {@link ActionFactory} for creating notification {@link
|
||||
* NotificationCompat.Action actions}.
|
||||
* @param customLayout The custom layout {@linkplain MediaSession#setCustomLayout(List) set by
|
||||
|
|
@ -138,7 +138,7 @@ public final class MediaNotification {
|
|||
* been loaded asynchronously.
|
||||
*/
|
||||
MediaNotification createNotification(
|
||||
MediaSession session,
|
||||
MediaSession mediaSession,
|
||||
ImmutableList<CommandButton> customLayout,
|
||||
ActionFactory actionFactory,
|
||||
Callback onNotificationChangedCallback);
|
||||
|
|
|
|||
Loading…
Reference in a new issue