Fix exceptions handlers

This commit is contained in:
Romain Neutron 2012-04-13 15:21:52 +02:00
commit 32de2b39da
5 changed files with 58 additions and 10 deletions

View file

@ -27,6 +27,7 @@ class FFProbe extends Binary
* @param string $pathfile
* @return string
* @throws Exception\InvalidFileArgumentException
* @throws Exception\RuntimeException
*/
public function probeFormat($pathfile)
{
@ -46,6 +47,7 @@ class FFProbe extends Binary
* @param string $pathfile
* @return string
* @throws Exception\InvalidFileArgumentException
* @throws Exception\RuntimeException
*/
public function probeStreams($pathfile)
{
@ -56,14 +58,7 @@ class FFProbe extends Binary
$cmd = $this->binary . ' ' . $pathfile . ' -show_streams';
try
{
return $this->executeProbe($cmd);
}
catch (Exception\RuntimeException $e)
{
}
return $this->executeProbe($cmd);
}
/**