v4l2codecs: Use prop_offset in gst_v4l2_decoder_install_properties
Install properties at the given offset as intended instead of at 0. Currently there are no elements with any properties, so this has no effect. This change is needed if any element adds properties in the future. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9179>
This commit is contained in:
parent
efb22b550c
commit
ea08b70946
@ -1113,14 +1113,16 @@ gst_v4l2_decoder_install_properties (GObjectClass * gobject_class,
|
||||
video_device_path = device->video_device_path;
|
||||
}
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_MEDIA_DEVICE,
|
||||
g_param_spec_string ("media-device", "Media Device Path",
|
||||
"Path to the media device node", media_device_path,
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_MEDIA_DEVICE + prop_offset, g_param_spec_string ("media-device",
|
||||
"Media Device Path", "Path to the media device node",
|
||||
media_device_path,
|
||||
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_VIDEO_DEVICE,
|
||||
g_param_spec_string ("video-device", "Video Device Path",
|
||||
"Path to the video device node", video_device_path,
|
||||
g_object_class_install_property (gobject_class,
|
||||
PROP_VIDEO_DEVICE + prop_offset, g_param_spec_string ("video-device",
|
||||
"Video Device Path", "Path to the video device node",
|
||||
video_device_path,
|
||||
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user