Refactoring.

This commit is contained in:
Сергей Петров 2025-04-07 15:37:51 +05:00
parent aac1d92a9e
commit 1efd15ddc7

View File

@ -82,7 +82,7 @@ func CreateVideo() error {
Mpeg4AudioFormat: &aacFormat, Mpeg4AudioFormat: &aacFormat,
} }
for i := len(filenames) - 6; i < len(filenames)-1; i++ { for i := len(filenames) - 4; i < len(filenames)-1; i++ {
segment := storage.Segment{} segment := storage.Segment{}
// Open file for reading. // Open file for reading.
@ -208,7 +208,7 @@ func CreateVideo() error {
currentMpegTSMuxer.Close() currentMpegTSMuxer.Close()
if storage.Exists(tsFilename) { if storage.Exists(tsFilename) {
time.Sleep(period * time.Second) time.Sleep(3 * time.Second)
} }
} }
} }