Skip to content

Commit 8a94f69

Browse files
authored
fix: input standardization reporting metrics when not when opted-in (#153)
1 parent 940f3c2 commit 8a94f69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/main/java/com/mux/video/upload/internal/TranscoderContext.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,10 @@ internal class TranscoderContext private constructor(
452452
logger.i(LOG_TAG, "Original file size: ${uploadInfo.inputFile.length()}")
453453
logger.i(LOG_TAG, "Transcoded file size: ${uploadInfo.standardizedFile?.length()}")
454454
maxStandardInputRes = (MAX_ALLOWED_WIDTH / MAX_ALLOWED_HEIGTH).toString()
455-
if (fileTranscoded && uploadInfo.optOut) {
455+
if (fileTranscoded && !uploadInfo.optOut) {
456456
metrics.reportStandardizationSuccess(started, ended, inputFileDurationMs,
457457
nonStandardInputReasons, maxStandardInputRes, sessionId, uploadInfo)
458-
} else if(uploadInfo.optOut) {
458+
} else if(!uploadInfo.optOut) {
459459
metrics.reportStandardizationFailed(started, ended, inputFileDurationMs,
460460
errorDescription, nonStandardInputReasons, maxStandardInputRes, sessionId, uploadInfo)
461461
}

0 commit comments

Comments
 (0)