add missing break statements while processing logs in native platforms

This commit is contained in:
Taner Sener 2021-11-08 00:21:59 +00:00
parent eee8d852b9
commit fc747666c5
2 changed files with 6 additions and 0 deletions

View File

@ -272,13 +272,16 @@ public class FFmpegKitConfig {
return; return;
} }
} }
break;
case PRINT_LOGS_WHEN_NO_CALLBACKS_DEFINED: { case PRINT_LOGS_WHEN_NO_CALLBACKS_DEFINED: {
if (globalCallbackDefined || sessionCallbackDefined) { if (globalCallbackDefined || sessionCallbackDefined) {
return; return;
} }
} }
break;
case ALWAYS_PRINT_LOGS: { case ALWAYS_PRINT_LOGS: {
} }
break;
} }
// PRINT LOGS // PRINT LOGS

View File

@ -541,13 +541,16 @@ void process_log(long sessionId, int levelValue, AVBPrint* logMessage) {
return; return;
} }
} }
break;
case LogRedirectionStrategyPrintLogsWhenNoCallbacksDefined: { case LogRedirectionStrategyPrintLogsWhenNoCallbacksDefined: {
if (globalCallbackDefined || sessionCallbackDefined) { if (globalCallbackDefined || sessionCallbackDefined) {
return; return;
} }
} }
break;
case LogRedirectionStrategyAlwaysPrintLogs: { case LogRedirectionStrategyAlwaysPrintLogs: {
} }
break;
} }
// PRINT LOGS // PRINT LOGS