Add an error message if the filter rule is empty.

Set the streaming status to active only once.
This commit is contained in:
marmei
2019-08-28 17:56:15 +02:00
parent 878531ff79
commit 717fa68b7e
5 changed files with 31 additions and 7 deletions

View File

@@ -889,8 +889,11 @@ InitBuffer:
bufferFile.Close()
stream.Status = true
playlist.Streams[streamID] = stream
if stream.Status == false {
stream.Status = true
playlist.Streams[streamID] = stream
}
tmpSegment++
tmpFile = fmt.Sprintf("%s%d.ts", tmpFolder, tmpSegment)