use fmt.Errorf
This commit is contained in:
parent
7576d8c1da
commit
559a858893
1 changed files with 1 additions and 2 deletions
|
|
@ -13,7 +13,6 @@ import (
|
|||
"unsafe"
|
||||
|
||||
"github.com/pion/webrtc/v2"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"n.eko.moe/neko/internal/types"
|
||||
)
|
||||
|
|
@ -190,7 +189,7 @@ func CreatePipeline(codecName string, pipelineDevice string, pipelineSrc string)
|
|||
pipelineStr = fmt.Sprintf(audioSrc+"audio/x-raw, rate=8000 ! alawenc"+pipelineStr, pipelineDevice)
|
||||
}
|
||||
default:
|
||||
return nil, errors.Errorf("unknown video codec %s", codecName)
|
||||
return nil, fmt.Errorf("unknown codec %s", codecName)
|
||||
}
|
||||
|
||||
pipelineStrUnsafe := C.CString(pipelineStr)
|
||||
|
|
|
|||
Loading…
Reference in a new issue