[libcamera-devel] [PATCH 1/5] test: message: Fix message handling in MessageReceiver
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Wed Nov 27 09:49:05 CET 2019
Forward messages that we don't handle to the base Object class, to avoid
both blocking the ThreadMove message and mistaking it as the test
message.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
test/message.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test/message.cpp b/test/message.cpp
index 3775c30a20b3..cf21d5ca50d1 100644
--- a/test/message.cpp
+++ b/test/message.cpp
@@ -37,6 +37,11 @@ public:
protected:
void message(Message *msg)
{
+ if (msg->type() != Message::None) {
+ Object::message(msg);
+ return;
+ }
+
if (thread() != Thread::current())
status_ = InvalidThread;
else
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list