Skip to content
Snippets Groups Projects
Commit 5bb2efd5 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

rendermanager: fix video display on GNU/Linux

Gitlab: #515
Change-Id: Ib498932f9480896bc4e61fa035277b76297b2c89
parent 464e0c7d
No related branches found
No related tags found
No related merge requests found
...@@ -123,8 +123,9 @@ FrameWrapper::slotFrameUpdated(const std::string& id) ...@@ -123,8 +123,9 @@ FrameWrapper::slotFrameUpdated(const std::string& id)
unsigned int width = renderer_->size().width(); unsigned int width = renderer_->size().width();
unsigned int height = renderer_->size().height(); unsigned int height = renderer_->size().height();
unsigned int size = frame_.storage.size();
#ifndef Q_OS_LINUX
unsigned int size = frame_.storage.size();
/** /**
* If the frame is empty or not the expected size, * If the frame is empty or not the expected size,
* do nothing and keep the last rendered QImage. * do nothing and keep the last rendered QImage.
...@@ -137,6 +138,10 @@ FrameWrapper::slotFrameUpdated(const std::string& id) ...@@ -137,6 +138,10 @@ FrameWrapper::slotFrameUpdated(const std::string& id)
height, height,
QImage::Format_ARGB32_Premultiplied) QImage::Format_ARGB32_Premultiplied)
); );
#else
if (frame_.ptr) {
image_.reset(new QImage(frame_.ptr, width, height, QImage::Format_ARGB32));
#endif
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment