summaryrefslogtreecommitdiff
path: root/src/gstreamer
diff options
context:
space:
mode:
Diffstat (limited to 'src/gstreamer')
-rw-r--r--src/gstreamer/gstlibcameraprovider.cpp4
-rw-r--r--src/gstreamer/gstlibcamerasrc.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gstreamer/gstlibcameraprovider.cpp b/src/gstreamer/gstlibcameraprovider.cpp
index 914ed4fb..840e87a3 100644
--- a/src/gstreamer/gstlibcameraprovider.cpp
+++ b/src/gstreamer/gstlibcameraprovider.cpp
@@ -127,7 +127,7 @@ static GstDevice *
gst_libcamera_device_new(const std::shared_ptr<Camera> &camera)
{
g_autoptr(GstCaps) caps = gst_caps_new_empty();
- const gchar *name = camera->name().c_str();
+ const gchar *name = camera->id().c_str();
StreamRoles roles;
roles.push_back(StreamRole::VideoRecording);
@@ -189,7 +189,7 @@ gst_libcamera_provider_probe(GstDeviceProvider *provider)
}
for (const std::shared_ptr<Camera> &camera : cm->cameras()) {
- GST_INFO_OBJECT(self, "Found camera '%s'", camera->name().c_str());
+ GST_INFO_OBJECT(self, "Found camera '%s'", camera->id().c_str());
devices = g_list_append(devices,
g_object_ref_sink(gst_libcamera_device_new(camera)));
}
diff --git a/src/gstreamer/gstlibcamerasrc.cpp b/src/gstreamer/gstlibcamerasrc.cpp
index 9755922a..0c28ae3f 100644
--- a/src/gstreamer/gstlibcamerasrc.cpp
+++ b/src/gstreamer/gstlibcamerasrc.cpp
@@ -241,12 +241,12 @@ gst_libcamera_src_open(GstLibcameraSrc *self)
cam = cm->cameras()[0];
}
- GST_INFO_OBJECT(self, "Using camera named '%s'", cam->name().c_str());
+ GST_INFO_OBJECT(self, "Using camera '%s'", cam->id().c_str());
ret = cam->acquire();
if (ret) {
GST_ELEMENT_ERROR(self, RESOURCE, BUSY,
- ("Camera name '%s' is already in use.", cam->name().c_str()),
+ ("Camera '%s' is already in use.", cam->id().c_str()),
("libcamera::Camera::acquire() failed: %s", g_strerror(ret)));
return false;
}
@@ -495,7 +495,7 @@ gst_libcamera_src_close(GstLibcameraSrc *self)
ret = state->cam_->release();
if (ret) {
GST_ELEMENT_WARNING(self, RESOURCE, BUSY,
- ("Camera name '%s' is still in use.", state->cam_->name().c_str()),
+ ("Camera '%s' is still in use.", state->cam_->id().c_str()),
("libcamera::Camera.release() failed: %s", g_strerror(-ret)));
}