mirror of
https://github.com/novnc/noVNC.git
synced 2025-04-18 23:44:01 +03:00
Close VideoFrame after H.264 detection
Otherwise browser will complain when it is garbage collected.
This commit is contained in:
parent
154653523c
commit
8edb3d282e
@ -117,7 +117,7 @@ async function _checkWebCodecsH264DecodeSupport() {
|
||||
let error = null;
|
||||
|
||||
let decoder = new VideoDecoder({
|
||||
output: (frame) => { gotframe = true; },
|
||||
output: (frame) => { gotframe = true; frame.close(); },
|
||||
error: (e) => { error = e; },
|
||||
});
|
||||
let chunk = new EncodedVideoChunk({
|
||||
|
Loading…
x
Reference in New Issue
Block a user