Prevent log spam when missing mime (#258)
parent
cdfcec1a3f
commit
94516d183b
|
@ -20,7 +20,9 @@ class LivePhoto
|
||||||
/** Check if a given Exif data is the video part of a live photo */
|
/** Check if a given Exif data is the video part of a live photo */
|
||||||
public function isVideoPart(array &$exif)
|
public function isVideoPart(array &$exif)
|
||||||
{
|
{
|
||||||
return 'video/quicktime' === $exif['MIMEType'] && \array_key_exists('ContentIdentifier', $exif);
|
return \array_key_exists('MIMEType', $exif)
|
||||||
|
&& 'video/quicktime' === $exif['MIMEType']
|
||||||
|
&& \array_key_exists('ContentIdentifier', $exif);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get liveid from photo part */
|
/** Get liveid from photo part */
|
||||||
|
|
Loading…
Reference in New Issue