1
0
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:
Pierre Ossman 2025-04-08 15:42:20 +02:00
parent 154653523c
commit 8edb3d282e

View File

@ -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({