Skip to content

Commit

Permalink
x11: fix wrong hw frame check
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Oct 22, 2015
1 parent a3f07a3 commit c6cab10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions widgets/X11Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ bool X11Renderer::receiveFrame(const VideoFrame& frame)
}
d.video_frame = frame; // set before map!
VideoFrame interopFrame;
if (frame.constBits(0)) {
if (!frame.constBits(0)) {
interopFrame = VideoFrame(d.ximage->width, d.ximage->height, pixelFormat(d.ximage));
interopFrame.setBits(d.ximage->data);
interopFrame.setBits((quint8*)d.ximage->data);
interopFrame.setBytesPerLine(d.ximage->bytes_per_line);
}
if (frame.constBits(0)
Expand Down

0 comments on commit c6cab10

Please sign in to comment.