mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-22 01:29:14 +00:00
Update encoder close
This commit is contained in:
parent
310a638a44
commit
32142dac09
1 changed files with 2 additions and 2 deletions
|
|
@ -176,11 +176,11 @@ func (v *VpxEncoder) Release() {
|
|||
log.Println("Close output", v.Output)
|
||||
C.vpx_img_free(&v.vpxImage)
|
||||
C.vpx_codec_destroy(&v.vpxCodexCtx)
|
||||
// TODO: Check here, after close it will signal
|
||||
// TODO: Bug here, after close it will signal
|
||||
close(v.Output)
|
||||
if v.Input != nil {
|
||||
close(v.Input)
|
||||
}
|
||||
close(v.Output)
|
||||
}
|
||||
v.IsRunning = false
|
||||
// TODO: Can we merge IsRunning and Done together
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue