fix synchronous execution errors in get media information from command methods for android

This commit is contained in:
Taner Sener 2021-12-22 00:20:15 +00:00
parent d8945c1fca
commit 6d1493d08d

View File

@ -371,7 +371,7 @@ public class FFprobeKit {
}
/**
* <p>Extracts media information using the command provided asynchronously.
* <p>Extracts media information using the command provided.
*
* @param command FFprobe command that prints media information for a file in JSON format
* @return media information session created for this execution
@ -379,7 +379,7 @@ public class FFprobeKit {
public static MediaInformationSession getMediaInformationFromCommand(final String command) {
final MediaInformationSession session = new MediaInformationSession(FFmpegKitConfig.parseArguments(command));
FFmpegKitConfig.asyncGetMediaInformationExecute(session, AbstractSession.DEFAULT_TIMEOUT_FOR_ASYNCHRONOUS_MESSAGES_IN_TRANSMIT);
FFmpegKitConfig.getMediaInformationExecute(session, AbstractSession.DEFAULT_TIMEOUT_FOR_ASYNCHRONOUS_MESSAGES_IN_TRANSMIT);
return session;
}
@ -424,7 +424,7 @@ public class FFprobeKit {
final int waitTimeout) {
final MediaInformationSession session = new MediaInformationSession(arguments, executeCallback, logCallback);
FFmpegKitConfig.getMediaInformationExecute(session, waitTimeout);
FFmpegKitConfig.asyncGetMediaInformationExecute(session, waitTimeout);
return session;
}