Media Default Format passing duration parameter to the ProgressListener

This commit is contained in:
Igor Kosteski 2018-02-21 16:38:46 +01:00
commit 934ed2739a
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@ abstract class DefaultVideo extends DefaultAudio implements VideoInterface
public function createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, $pass, $total, $duration = 0)
{
$format = $this;
$listeners = array(new VideoProgressListener($ffprobe, $media->getPathfile(), $pass, $total));
$listeners = array(new VideoProgressListener($ffprobe, $media->getPathfile(), $pass, $total, $duration));
foreach ($listeners as $listener) {
$listener->on('progress', function () use ($format, $media) {