Skip to content

Commit 8edb3d2

Browse files
committed
Close VideoFrame after H.264 detection
Otherwise browser will complain when it is garbage collected.
1 parent 1546535 commit 8edb3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/util/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ async function _checkWebCodecsH264DecodeSupport() {
117117
let error = null;
118118

119119
let decoder = new VideoDecoder({
120-
output: (frame) => { gotframe = true; },
120+
output: (frame) => { gotframe = true; frame.close(); },
121121
error: (e) => { error = e; },
122122
});
123123
let chunk = new EncodedVideoChunk({

0 commit comments

Comments
 (0)