mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
SourceImpl: add PutError().
The error message is stored as a normal frame with unknown pixel format.
This commit is contained in:
@@ -62,7 +62,9 @@ class Frame {
|
||||
return *this;
|
||||
}
|
||||
|
||||
explicit operator bool() const { return m_data; }
|
||||
explicit operator bool() const {
|
||||
return m_data && m_data->pixelFormat != VideoMode::kUnknown;
|
||||
}
|
||||
|
||||
operator llvm::StringRef() const {
|
||||
if (!m_data) return llvm::StringRef{};
|
||||
|
||||
Reference in New Issue
Block a user