Break if dimension is found

This commit is contained in:
Romain Neutron 2013-09-04 19:44:45 +02:00
commit f530d60118

View file

@ -88,6 +88,7 @@ class ResizeFilter implements VideoFilterInterface
if ($stream->isVideo()) { if ($stream->isVideo()) {
try { try {
$dimensions = $stream->getDimensions(); $dimensions = $stream->getDimensions();
break;
} catch (RuntimeException $e) { } catch (RuntimeException $e) {
} }