mirror of
https://github.com/aler9/gortsplib
synced 2025-12-24 13:38:08 +08:00
add missing defer close in examples (#925)
This commit is contained in:
@@ -73,6 +73,7 @@ func main() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer mp4aEnc.close()
|
||||
|
||||
// setup MPEG-4 Audio -> RTP encoder
|
||||
rtpEnc, err := forma.CreateEncoder()
|
||||
|
||||
@@ -86,6 +86,7 @@ func main() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer opusEnc.close()
|
||||
|
||||
// setup Opus -> RTP encoder
|
||||
rtpEnc, err := forma.CreateEncoder()
|
||||
|
||||
Reference in New Issue
Block a user