[libcamera-devel] [PATCH] gstreamer: Fix unused variable error
Jaslo Ziska
jaslo at ziska.de
Wed Nov 22 20:15:47 CET 2023
Fix unused variable error introduced in fd84180d.
---
This patch fixes the unused variable error raised by Laurent.
src/gstreamer/gstlibcamerasrc.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gstreamer/gstlibcamerasrc.cpp b/src/gstreamer/gstlibcamerasrc.cpp
index 767017db..b0eb2dd7 100644
--- a/src/gstreamer/gstlibcamerasrc.cpp
+++ b/src/gstreamer/gstlibcamerasrc.cpp
@@ -765,7 +765,7 @@ gst_libcamera_src_send_event(GstElement *element, GstEvent *event)
switch (GST_EVENT_TYPE(event)) {
case GST_EVENT_EOS: {
- g_autoptr(GstEvent) oldEvent = self->pending_eos.exchange(event);
+ [[maybe_unused]] g_autoptr(GstEvent) oldEvent = self->pending_eos.exchange(event);
ret = TRUE;
break;
--
2.42.1
More information about the libcamera-devel
mailing list