Skip to content

Commit

Permalink
not needed: we convert to Uint8Array early
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 19, 2021
1 parent 5e66fd7 commit ad665ea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions html5/js/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -1552,9 +1552,6 @@ XpraWindow.prototype.do_paint = function paint(x, y, width, height, coding, img_
this.broadway_paint_location = [x, y];
// we can pass a buffer full of NALs to decode() directly
// as long as they are framed properly with the NAL header
if (!Array.isArray(img_data)) {
img_data = Array.from(img_data);
}
this.broadway_decoder.decode(img_data);
// broadway decoding is synchronous:
// (and already painted via the onPictureDecoded callback)
Expand Down

0 comments on commit ad665ea

Please sign in to comment.