Commit 2a9144fa by tonihei Committed by Oliver Woodman

Fix loadCompleted flag in MediaChunk implementations.

This flag was always set even if the load was canceled and not completed.

PiperOrigin-RevId: 315659262
parent b0d98a2e
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment