Fix using rotate and resize filters at the same time (#78)
This commit is contained in:
parent
5a9d4a0f04
commit
fca866e1d8
8 changed files with 118 additions and 7 deletions
|
|
@ -16,12 +16,18 @@ use FFMpeg\FFProbe\DataMapping\StreamCollection;
|
|||
|
||||
abstract class AbstractStreamableMedia extends AbstractMediaType
|
||||
{
|
||||
private $streams;
|
||||
|
||||
/**
|
||||
* @return StreamCollection
|
||||
*/
|
||||
public function getStreams()
|
||||
{
|
||||
return $this->ffprobe->streams($this->pathfile);
|
||||
if (null === $this->streams) {
|
||||
$this->streams = $this->ffprobe->streams($this->pathfile);
|
||||
}
|
||||
|
||||
return $this->streams;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue