You are here

protected function PHPVideoToolkit::_postProcess in Video 7

Same name and namespace in other branches
  1. 7.2 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::_postProcess()

* Carries out the post processing of the files. * * @access protected *

Parameters

boolean $log Determines if logging of errors should be carried out.: * @param array $files The array of files that have just been processed. * @return mixed

1 call to PHPVideoToolkit::_postProcess()
PHPVideoToolkit::execute in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* Commits all the commands and executes the ffmpeg procedure. This will also attempt to validate any outputted files in order to provide * some level of stop and check system. * * @access public *

File

libraries/phpvideotoolkit/phpvideotoolkit.php5.php, line 3591

Class

PHPVideoToolkit

Code

protected function _postProcess($log, $files) {
  if (count($this->_post_processes)) {

    // 				loop through the post processes
    foreach ($this->_post_processes as $key => $process) {

      // 					call the process
      $return_value = call_user_func_array($process, array(
        $files,
      ));

      // 					if the return value is not strictly equal to true the result will be treated as an error and exit the process loop
      if (!is_array($return_value) && $return_value !== true) {
        if ($log) {
          $this
            ->_logResult($return_value);
        }
        return $this
          ->_raiseError($return_value);
      }
    }
    return $return_value;
  }
  return false;
}