tw: fix lp return status

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/888/head
Varun Patil 2023-10-22 12:25:00 -07:00
parent f22b75c04d
commit a0d78504b9
1 changed files with 4 additions and 4 deletions

View File

@ -98,12 +98,12 @@ class TimelineWrite
// Hand off if Live Photo video part // Hand off if Live Photo video part
if ($isvideo && $this->livePhoto->isVideoPart($exif)) { if ($isvideo && $this->livePhoto->isVideoPart($exif)) {
$this->livePhoto->processVideoPart($file, $exif); return $this->livePhoto->processVideoPart($file, $exif);
return true;
} }
// Delete video part if it is no longer valid // If control reaches here, it's not a Live Photo video part
// But if prevRow exists and mapcluster is not set, it *was* a live video part
// In this case delete that entry (very rare edge case)
if ($prevRow && !\array_key_exists('mapcluster', $prevRow)) { if ($prevRow && !\array_key_exists('mapcluster', $prevRow)) {
$this->livePhoto->deleteVideoPart($file); $this->livePhoto->deleteVideoPart($file);
$prevRow = null; $prevRow = null;