mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-26 16:34:43 +03:00
keep audio skip consistent with playback
Clips were skipped even when the range would be served video-only, and seeking into a skipped span landed on later footage. The skip now only applies when every row in the range carries audio, and seeks inside a zero-duration span land on the next clip.
This commit is contained in:
@@ -61,6 +61,12 @@ export function calculateSeekPosition(
|
||||
return false;
|
||||
}
|
||||
|
||||
// skipped clips have no playlist media, so a seek inside one lands on
|
||||
// the next clip that plays
|
||||
if (segment.duration === 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// playlist duration exceeds wall length when the clip carries
|
||||
// keyframe back-snap lead-in
|
||||
const wallLength = segment.end_time - segment.start_time;
|
||||
|
||||
Reference in New Issue
Block a user