remove unncessary comments
All checks were successful
CI / Maven unit tests (push) Successful in 14s
CI / Build and push images (push) Has been skipped
CI / Deploy to server (push) Has been skipped

This commit is contained in:
2026-09-16 19:48:35 +01:00
parent aa178fea9a
commit 0e0146ebf9

View File

@@ -80,8 +80,6 @@ public class StreamActionsService {
long firstMs = parseTimestampMs(segments.getFirst());
float trimOffset = Math.max(0f, (startTime.toEpochMilli() - firstMs) / 1000f);
// A first segment shorter than the trim offset means the requested start
// lands in a gap after it; drop it and begin at the next recorded footage.
if (trimOffset > 0 && probeDurationSeconds(segments.getFirst()) < trimOffset) {
segments.removeFirst();
if (segments.isEmpty()) {
@@ -91,11 +89,8 @@ public class StreamActionsService {
trimOffset = 0f;
}
// Segments are copied whole, so playback begins at the first segment's
// boundary rather than at the requested start. Measure the duration from
// there so the section still ends at endTime, lead-in included.
float duration = (endTime.toEpochMilli() - firstMs) / 1000f;
float duration = (endTime.toEpochMilli() - firstMs) / 1000f;
return new SegmentSelection(segments, trimOffset, duration);
}