Skip to content

Commit

Permalink
fix video grabbing not working (#7631)
Browse files Browse the repository at this point in the history
#changelog #emscripten
  • Loading branch information
ofTheo authored Sep 2, 2023
1 parent 56d8198 commit 39e25cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ var LibraryHTML5Video = {
html5video_grabber_update__deps: ['$GL'],
html5video_grabber_update: function(grabber_id, update_pixels, pixels) {
var grabber = VIDEO.grabber[grabber_id];
if ( grabber.readyState == grabber.HAVE_METADATA ) {
if ( grabber.readyState > grabber.HAVE_NOTHING ) {
VIDEO.update(update_pixels, grabber, VIDEO.grabber[grabber_id].context, pixels);
return true;
}else{
Expand Down

0 comments on commit 39e25cf

Please sign in to comment.