Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(video): improve debug message
Browse files Browse the repository at this point in the history
Distinguish between "invalid" pixel format and "unknown" pixel format
due to unsupported platform
  • Loading branch information
sudden6 committed Dec 22, 2017
1 parent 81522de commit ff2fc18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/camera/v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ QString v4l2::getPixelFormatString(uint32_t pixel_format)
{
if (pixFmtToName.find(pixel_format) == pixFmtToName.end()) {
qWarning() << "Pixel format not found";
return QString("unknown");
return QString("invalid");
}
return pixFmtToName.at(pixel_format);
}
Expand Down

0 comments on commit ff2fc18

Please sign in to comment.