getAvconvMp3Process should return a Process

This commit is contained in:
Pierre Rudloff 2017-05-02 11:20:36 +02:00
parent b36efb3929
commit 00d2f0e199

View file

@ -253,7 +253,7 @@ class VideoDownload
throw(new \Exception('Can\'t find avconv or ffmpeg'));
}
return ProcessBuilder::create(
$builder = ProcessBuilder::create(
[
$this->config->avconv,
'-v', 'quiet',
@ -265,6 +265,8 @@ class VideoDownload
'pipe:1',
]
);
return $builder->getProcess();
}
/**
@ -292,7 +294,7 @@ class VideoDownload
} else {
$avconvProc = $this->getAvconvMp3Process($video->url);
return popen($avconvProc->getProcess()->getCommandLine(), 'r');
return popen($avconvProc->getCommandLine(), 'r');
}
}