gstreamer: remove dublicated property
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
f6d95130f7
commit
2c5bda6f08
1 changed files with 3 additions and 12 deletions
|
@ -32,7 +32,7 @@ GST_DEBUG_CATEGORY_STATIC(provider_debug);
|
|||
*/
|
||||
|
||||
enum {
|
||||
PROP_DEVICE_NAME = 1,
|
||||
PROP_DEVICE_ = 1,
|
||||
};
|
||||
|
||||
#define GST_TYPE_LIBCAMERA_DEVICE gst_libcamera_device_get_type()
|
||||
|
@ -76,14 +76,11 @@ gst_libcamera_device_reconfigure_element(GstDevice *device,
|
|||
|
||||
static void
|
||||
gst_libcamera_device_set_property(GObject *object, guint prop_id,
|
||||
const GValue *value, GParamSpec *pspec)
|
||||
[[maybe_unused]]const GValue *value, GParamSpec *pspec)
|
||||
{
|
||||
GstLibcameraDevice *device = GST_LIBCAMERA_DEVICE(object);
|
||||
// GstLibcameraDevice *device = GST_LIBCAMERA_DEVICE(object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_DEVICE_NAME:
|
||||
device->name = g_value_dup_string(value);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
|
||||
break;
|
||||
|
@ -117,12 +114,6 @@ gst_libcamera_device_class_init(GstLibcameraDeviceClass *klass)
|
|||
|
||||
object_class->set_property = gst_libcamera_device_set_property;
|
||||
object_class->finalize = gst_libcamera_device_finalize;
|
||||
|
||||
GParamSpec *pspec = g_param_spec_string("name", "Name",
|
||||
"The name of the camera device", "",
|
||||
(GParamFlags)(G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
g_object_class_install_property(object_class, PROP_DEVICE_NAME, pspec);
|
||||
}
|
||||
|
||||
static GstDevice *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue