Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
itzmanish committed Jan 22, 2025
1 parent 36f7b00 commit bf0168f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions mediaengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const (
MimeTypeFlexFEC = "video/flexfec"
)

// ErrCodecAlreadyRegistered indicates that a codec has already been registered for the same payload type.
var ErrCodecAlreadyRegistered = fmt.Errorf("codec already registered for same payload type")

type mediaEngineHeaderExtension struct {
Expand Down
3 changes: 2 additions & 1 deletion mediaengine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,8 @@ func TestMediaEngineDoubleRegister(t *testing.T) {
assert.Equal(t, len(mediaEngine.audioCodecs), 1)
}

// If a user attempts to register a codec with same payload but with different codec we should just discard duplicate calls.
// If a user attempts to register a codec with same payload but with different
// codec we should just discard duplicate calls.
func TestMediaEngineDoubleRegisterDifferentCodec(t *testing.T) {
mediaEngine := MediaEngine{}

Expand Down

0 comments on commit bf0168f

Please sign in to comment.