updating changes

This commit is contained in:
Saxon Milton 2018-05-14 16:23:55 +09:30
parent 4aa0fed8b8
commit 839ac9d922
3 changed files with 4 additions and 1 deletions

BIN
RevidCLI

Binary file not shown.

View File

@ -365,8 +365,11 @@ func updateRevid(stop bool) {
case "RtmpUrl":
config.RtmpUrl = value
case "Bitrate":
revidInst.Log(revid.Debug, fmt.Sprintf("The value: %v", value))
asInt, err := strconv.Atoi(value)
revidInst.Log(revid.Debug, fmt.Sprintf("Bitrate as integer: %v", asInt))
if asInt > 0 && err == nil {
revidInst.Log(revid.Debug, "Updating bitrate")
config.Bitrate = value
}
case "OutputFileName":

View File

@ -411,7 +411,7 @@ func (r *revid) outputClips() {
r.Log(Detail, "About to send")
err2 := r.sendClip(clip)
if err2 == nil {
r.Log(Debug, "Sent clip")
r.Log(Detail, "Sent clip")
}
if r.isRunning && err2 != nil && len(clip) > 11 {