1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(video): improve debug message

Distinguish between "invalid" pixel format and "unknown" pixel format
due to unsupported platform
This commit is contained in:
sudden6 2017-12-21 23:44:51 +01:00
parent 81522deabd
commit ff2fc18be1
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -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);
}