mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-27 16:06:39 +00:00
bug4671 ensure boxes are properly cleaned
This commit is contained in:
+7
-4
@@ -241,10 +241,13 @@ public class MediaServiceImpl extends RemoteServiceServlet implements MediaServi
|
||||
try {
|
||||
tmp = createFileFromData(start, end, skipped);
|
||||
try (IsoFile isof = new IsoFile(tmp)) {
|
||||
recordStartedTimer = determineRecordingStart(isof);
|
||||
spherical = determine360(isof);
|
||||
duration = determineDuration(isof);
|
||||
removeTempFiles(isof);
|
||||
try {
|
||||
recordStartedTimer = determineRecordingStart(isof);
|
||||
spherical = determine360(isof);
|
||||
duration = determineDuration(isof);
|
||||
} finally {
|
||||
removeTempFiles(isof);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.log(Level.WARNING, "Error in video analysis ", e);
|
||||
|
||||
Reference in New Issue
Block a user