Refactoring.
This commit is contained in:
parent
aac1d92a9e
commit
1efd15ddc7
@ -82,7 +82,7 @@ func CreateVideo() error {
|
||||
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{}
|
||||
|
||||
// Open file for reading.
|
||||
@ -208,7 +208,7 @@ func CreateVideo() error {
|
||||
currentMpegTSMuxer.Close()
|
||||
|
||||
if storage.Exists(tsFilename) {
|
||||
time.Sleep(period * time.Second)
|
||||
time.Sleep(3 * time.Second)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user