mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
SourceImpl: add PutError().
The error message is stored as a normal frame with unknown pixel format.
This commit is contained in:
@@ -118,6 +118,9 @@ class SourceImpl {
|
||||
protected:
|
||||
void PutFrame(VideoMode::PixelFormat pixelFormat, llvm::StringRef data,
|
||||
Frame::Time time);
|
||||
void PutError(llvm::StringRef msg, Frame::Time time) {
|
||||
PutFrame(VideoMode::kUnknown, msg, time);
|
||||
}
|
||||
|
||||
// Notification functions for corresponding atomics
|
||||
virtual void NumSinksChanged() = 0;
|
||||
|
||||
Reference in New Issue
Block a user