@@ -486,17 +486,11 @@ public final class MuxUpload : Hashable, Equatable {
486
486
487
487
switch inspectionResult {
488
488
case . inspectionFailure:
489
- // TODO: Request upload confirmation
490
- // before proceeding
491
-
492
- guard let nonStandardInputHandler = self . nonStandardInputHandler else {
493
- self . startNetworkTransport (
494
- videoFile: videoFile
495
- )
496
- return
497
- }
498
-
499
- let shouldCancelUpload = nonStandardInputHandler ( )
489
+ // Request upload confirmation
490
+ // before proceeding. If handler unset,
491
+ // by default do not cancel upload if
492
+ // input standardization fails
493
+ let shouldCancelUpload = self . nonStandardInputHandler ? ( ) ?? false
500
494
501
495
if !shouldCancelUpload {
502
496
self . startNetworkTransport (
@@ -548,14 +542,11 @@ public final class MuxUpload : Hashable, Equatable {
548
542
videoFile: outputURL
549
543
)
550
544
} else {
551
- guard let nonStandardInputHandler = self . nonStandardInputHandler else {
552
- self . startNetworkTransport (
553
- videoFile: videoFile
554
- )
555
- return
556
- }
557
-
558
- let shouldCancelUpload = nonStandardInputHandler ( )
545
+ // Request upload confirmation
546
+ // before proceeding. If handler unset,
547
+ // by default do not cancel upload if
548
+ // input standardization fails
549
+ let shouldCancelUpload = self . nonStandardInputHandler ? ( ) ?? false
559
550
560
551
if !shouldCancelUpload {
561
552
self . startNetworkTransport (
0 commit comments