revid: got rid of debug prints

This commit is contained in:
saxon 2018-11-21 18:16:10 +10:30
parent 315ba6bd76
commit cedc63a0b5
2 changed files with 0 additions and 4 deletions

View File

@ -30,7 +30,6 @@ package main
import ( import (
"flag" "flag"
"fmt"
"os" "os"
"runtime/pprof" "runtime/pprof"
"strconv" "strconv"
@ -215,7 +214,6 @@ func handleFlags() {
case "Udp": case "Udp":
config.Output = revid.Udp config.Output = revid.Udp
case "Rtp": case "Rtp":
fmt.Println("rtp output")
config.Output = revid.Rtp config.Output = revid.Rtp
config.Packetization = revid.MpegtsRtp config.Packetization = revid.MpegtsRtp
case "": case "":

View File

@ -228,7 +228,6 @@ func (r *Revid) reset(config Config) error {
case Http: case Http:
r.destination = newHttpSender(r.ns, r.config.Logger.Log) r.destination = newHttpSender(r.ns, r.config.Logger.Log)
case Rtp: case Rtp:
fmt.Println("here")
s, err := newUdpSender(r.config.RtpAddress, r.config.Logger.Log) s, err := newUdpSender(r.config.RtpAddress, r.config.Logger.Log)
if err != nil { if err != nil {
return err return err
@ -280,7 +279,6 @@ func (r *Revid) reset(config Config) error {
return err return err
} }
case MpegtsRtp: case MpegtsRtp:
fmt.Println("here")
r.config.Logger.Log(smartlogger.Info, pkg+"using RTP packetisation") r.config.Logger.Log(smartlogger.Info, pkg+"using RTP packetisation")
frameRate, _ := strconv.Atoi(r.config.FrameRate) frameRate, _ := strconv.Atoi(r.config.FrameRate)
r.encoder = rtp.NewEncoder(&r.packer, frameRate) r.encoder = rtp.NewEncoder(&r.packer, frameRate)