mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-08-03 23:34:01 +00:00
Check if dup frame didn't exist
FBNeo can return dup frame flag before its first frame.
This commit is contained in:
parent
4d5033f03c
commit
84f55691eb
1 changed files with 4 additions and 1 deletions
|
|
@ -209,7 +209,9 @@ func (f *Frontend) handleVideo(data []byte, delta int32, fi nanoarch.FrameInfo)
|
|||
}
|
||||
|
||||
func (f *Frontend) handleDup() {
|
||||
f.onVideo(*lastFrame)
|
||||
if lastFrame != nil {
|
||||
f.onVideo(*lastFrame)
|
||||
}
|
||||
}
|
||||
|
||||
func (f *Frontend) Shutdown() {
|
||||
|
|
@ -217,6 +219,7 @@ func (f *Frontend) Shutdown() {
|
|||
f.nano.Shutdown()
|
||||
f.SetAudioCb(noAudio)
|
||||
f.SetVideoCb(noVideo)
|
||||
lastFrame = nil
|
||||
f.mu.Unlock()
|
||||
f.log.Debug().Msgf("frontend shutdown done")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue