SourceImpl: add PutError().

The error message is stored as a normal frame with unknown pixel format.
This commit is contained in:
Peter Johnson
2016-10-26 23:30:13 -07:00
parent c462d0b249
commit 0053962182
2 changed files with 6 additions and 1 deletions

View File

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