mirror of
https://github.com/samsonjs/media.git
synced 2026-04-01 10:35:48 +00:00
Fix loadCompleted flag in MediaChunk implementations.
This flag was always set even if the load was canceled and not completed. PiperOrigin-RevId: 315659262
This commit is contained in:
parent
b0d98a2e22
commit
2a9144fa56
2 changed files with 2 additions and 2 deletions
|
|
@ -138,7 +138,7 @@ public class ContainerMediaChunk extends BaseMediaChunk {
|
|||
} finally {
|
||||
Util.closeQuietly(dataSource);
|
||||
}
|
||||
loadCompleted = true;
|
||||
loadCompleted = !loadCanceled;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
|||
if (!hasGapTag) {
|
||||
loadMedia();
|
||||
}
|
||||
loadCompleted = true;
|
||||
loadCompleted = !loadCanceled;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue