mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-24 04:19:48 -08:00
record: prevent recordDeleteAfter from deleting current segment (#4331)
This commit is contained in:
parent
3d16cf40b4
commit
b64650ca4a
3 changed files with 14 additions and 2 deletions
|
|
@ -512,6 +512,10 @@ func (pconf *Path) validate(
|
|||
return fmt.Errorf("maximum segment duration is 1 day")
|
||||
}
|
||||
|
||||
if pconf.RecordDeleteAfter != 0 && pconf.RecordDeleteAfter < pconf.RecordSegmentDuration {
|
||||
return fmt.Errorf("'recordDeleteAfter' cannot be lower than 'recordSegmentDuration'")
|
||||
}
|
||||
|
||||
// Authentication (deprecated)
|
||||
|
||||
if deprecatedCredentialsMode {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue