summaryrefslogtreecommitdiff
path: root/src/gstreamer/gstlibcamerapad.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gstreamer/gstlibcamerapad.cpp')
-rw-r--r--src/gstreamer/gstlibcamerapad.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gstreamer/gstlibcamerapad.cpp b/src/gstreamer/gstlibcamerapad.cpp
index dbe3361a..8616e067 100644
--- a/src/gstreamer/gstlibcamerapad.cpp
+++ b/src/gstreamer/gstlibcamerapad.cpp
@@ -126,3 +126,14 @@ gst_libcamera_pad_set_pool(GstPad *pad, GstLibcameraPool *pool)
g_object_unref(self->pool);
self->pool = pool;
}
+
+Stream *
+gst_libcamera_pad_get_stream(GstPad *pad)
+{
+ auto *self = GST_LIBCAMERA_PAD(pad);
+
+ if (self->pool)
+ return gst_libcamera_pool_get_stream(self->pool);
+
+ return nullptr;
+}