mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-10-21 15:29:51 +08:00
Update add consumer error message
This commit is contained in:
@@ -64,6 +64,20 @@ func (c *Codec) Kind() string {
|
||||
return GetKind(c.Name)
|
||||
}
|
||||
|
||||
func (c *Codec) PrintName() string {
|
||||
switch c.Name {
|
||||
case CodecAAC:
|
||||
return "AAC"
|
||||
case CodecELD:
|
||||
return "AAC-ELD"
|
||||
case CodecPCM:
|
||||
return "PCM-S16BE"
|
||||
case CodecPCML:
|
||||
return "PCM-S16LE"
|
||||
}
|
||||
return c.Name
|
||||
}
|
||||
|
||||
func (c *Codec) Clone() *Codec {
|
||||
clone := *c
|
||||
return &clone
|
||||
|
Reference in New Issue
Block a user