Fix Clipping video transcoding progress not correct

This commit is contained in:
Igor Kosteski 2018-02-18 13:57:06 +01:00
commit 53a978e021
6 changed files with 25 additions and 8 deletions

View file

@ -121,7 +121,7 @@ abstract class DefaultAudio extends EventEmitter implements AudioInterface, Prog
/**
* {@inheritdoc}
*/
public function createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, $pass, $total)
public function createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, $pass, $total, $duration = 0)
{
$format = $this;
$listener = new AudioProgressListener($ffprobe, $media->getPathfile(), $pass, $total);