mirror of https://bitbucket.org/ausocean/av.git
Fixing some syntax errors
This commit is contained in:
parent
ab2fef756f
commit
60163e007d
|
@ -75,7 +75,6 @@ const (
|
|||
Mpegts = 9
|
||||
Rtmp = 10
|
||||
Ffmpeg = 11
|
||||
Revid = 12
|
||||
Flv = 13
|
||||
LibRtmp = 14
|
||||
QuantizationOn = 15
|
||||
|
@ -83,6 +82,7 @@ const (
|
|||
Yes = 17
|
||||
No = 18
|
||||
NativeRtmp = 19
|
||||
FfmpegRtmp = 20
|
||||
)
|
||||
|
||||
// Default config settings
|
||||
|
@ -189,16 +189,6 @@ func (config *Config) Validate(r *revid) error {
|
|||
return errors.New("Bad output type defined in config!")
|
||||
}
|
||||
|
||||
switch config.RtmpMethod {
|
||||
case LibRtmp:
|
||||
case Ffmpeg:
|
||||
case NothingDefined:
|
||||
r.Log(Warning, "No RTMP encoding method defined, defautling to ffmpeg!")
|
||||
config.RtmpEncodingMethod = Ffmpeg
|
||||
default:
|
||||
return errors.New("Bad rtmp method defined in config!")
|
||||
}
|
||||
|
||||
switch config.Packetization {
|
||||
case None:
|
||||
case Mpegts:
|
||||
|
|
|
@ -300,6 +300,7 @@ func (r *revid) packClips() {
|
|||
packetCount := 0
|
||||
for {
|
||||
// Get some memory from the ring buffer for out clip
|
||||
var clip []byte
|
||||
if clip, err := r.ringBuffer.Get(); err != nil {
|
||||
r.Log(Error, err.Error())
|
||||
r.Log(Warning, "Clearing output chan!")
|
||||
|
|
Loading…
Reference in New Issue