mirror of https://bitbucket.org/ausocean/av.git
revid: got rid of debug prints
This commit is contained in:
parent
315ba6bd76
commit
cedc63a0b5
|
@ -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 "":
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue