Skip to content
Snippets Groups Projects
Commit 3abb0f22 authored by bodzsoaa's avatar bodzsoaa
Browse files

Update image format check

parent fb030a97
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ MuebTransmitter::~MuebTransmitter() { delete d_ptr_; } ...@@ -10,7 +10,7 @@ MuebTransmitter::~MuebTransmitter() { delete d_ptr_; }
void MuebTransmitter::SendFrame(libmueb::Frame frame) { void MuebTransmitter::SendFrame(libmueb::Frame frame) {
Q_D(MuebTransmitter); Q_D(MuebTransmitter);
if (frame.isNull() || frame.format() == QImage::Format_Invalid || if (frame.isNull() || frame.format() != QImage::Format_RGB888 ||
frame.width() != d->configuration_.width() || frame.width() != d->configuration_.width() ||
frame.height() != d->configuration_.height()) { frame.height() != d->configuration_.height()) {
qWarning() << "[MuebTransmitter] Frame is invalid"; qWarning() << "[MuebTransmitter] Frame is invalid";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment