Browse Source

fix(video): improve debug message

Distinguish between "invalid" pixel format and "unknown" pixel format
due to unsupported platform
reviewable/pr4871/r3
sudden6 8 years ago
parent
commit
ff2fc18be1
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 2
      src/platform/camera/v4l2.cpp

2
src/platform/camera/v4l2.cpp

@ -203,7 +203,7 @@ QString v4l2::getPixelFormatString(uint32_t pixel_format)
{ {
if (pixFmtToName.find(pixel_format) == pixFmtToName.end()) { if (pixFmtToName.find(pixel_format) == pixFmtToName.end()) {
qWarning() << "Pixel format not found"; qWarning() << "Pixel format not found";
return QString("unknown"); return QString("invalid");
} }
return pixFmtToName.at(pixel_format); return pixFmtToName.at(pixel_format);
} }

Loading…
Cancel
Save