decord/source/__helpers/00xxx/241___fetchSegment.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

23 lines
587 B
JavaScript

// Module ID: 241
// Function ID: 242
// Name: __fetchSegment
// Dependencies: [242]
// Module 241 (__fetchSegment)
import SegmentFetcher from "SegmentFetcher" /* 242 */;
require = arg1;
const dependencyMap = arg6;
arg0.__fetchSegment = function __fetchSegment(arg0, arg1, arg2) {
closure_0 = arg2;
const segment = SegmentFetcher.default.fetchSegment(arg0, arg1, (message) => {
if (message) {
const _Error = Error;
const error = new Error(message.message);
error.code = message.code;
closure_0(error);
} else {
closure_0(null);
}
});
};