protected function cleanFailedTranscode(Adapter $adapter, $outputFilePath, $failMode)
    {
        if (file_exists($outputFilePath)) {
            if ($failMode === self::ONFAIL_DELETE) {
                @unlink($outputFilePath);
                $this->dispatcher->dispatch(TranscodeEvents::FILE_REMOVED, new FileEvent($outputFilePath));
            }
        }

        $adapter->cleanFailedTranscode($outputFilePath);
    }
protected function cleanFailedTranscode(Adapter $adapter, $outputFilePath, $failMode)
    {
        if (file_exists($outputFilePath)) {
            if ($failMode === self::ONFAIL_DELETE) {
                @unlink($outputFilePath);
                $this->dispatcher->dispatch(TranscodeEvents::FILE_REMOVED, new FileEvent($outputFilePath));
            }
        }

        $adapter->cleanFailedTranscode($outputFilePath);
    }
protected function cleanFailedTranscode ( Adapter $ adapter , $ outputFilePath , $ failMode ) { if ( file_exists ( $ outputFilePath ) ) { if ( $ failMode === self :: ONFAIL_DELETE ) { @ unlink ( $ outputFilePath ) ; $ this -> dispatcher -> dispatch ( TranscodeEvents :: FILE_REMOVED , new FileEvent ( $ outputFilePath ) ) ; } } $ adapter -> cleanFailedTranscode ( $ outputFilePath ) ; }
Cleanup after a failed transcode - this may entail deleting newly created files, depending on the mode in which the transcode process executed

This will also call the corresponding `Adapter::cleanFailedTranscode()` method for the adapter that was used.

@param  AC\Transcoding\Adapter $adapter
@param  string                 $outputFilePath
@param  string                 $failMode
@return void
Cleanup after a failed transcode - this may entail deleting newly created files depending on the mode in which the transcode process executed