Callback function that is invoked when an asynchronous FFmpeg session has ended.
*
Session has either SessionStateCompleted or SessionStateFailed state when * the callback is invoked. *
If it has SessionStateCompleted state, ReturnCode should be checked to
* see the execution result.
*
If getState returns SessionStateFailed then
* getFailStackTrace should be used to get the failure reason.
*
* switch (session->getState()) {
* case SessionStateCompleted:
* auto returnCode = session->getReturnCode();
* break;
* case SessionStateFailed:
* auto failStackTrace = session->getFailStackTrace();
* break;
* }
*
*
* @param session session of the completed execution
*/
typedef std::function