mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-19 01:49:47 -08:00
remove redundant code (#5310)
This commit is contained in:
parent
b2af5defd0
commit
19d3a9c80d
1 changed files with 0 additions and 7 deletions
|
|
@ -46,13 +46,6 @@ func (t *klv) createEncoder() error {
|
|||
}
|
||||
|
||||
func (t *klv) ProcessUnit(u *unit.Unit) error { //nolint:dupl
|
||||
if t.encoder == nil {
|
||||
err := t.createEncoder()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
pkts, err := t.encoder.Encode(u.Payload.(unit.PayloadKLV))
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue