mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
rpicamsrc: Add property getters for preview window position.
Add the lines in get_property() for the preview-x/y/w/h properties so the values can be retrieved without causing critical warnings. Fixes https://github.com/thaytan/gst-rpicamsrc/issues/42
This commit is contained in:
parent
48b3c2bc8e
commit
8fa4acacc0
1 changed files with 12 additions and 0 deletions
|
@ -928,6 +928,18 @@ gst_rpi_cam_src_get_property (GObject * object, guint prop_id,
|
|||
case PROP_PREVIEW_OPACITY:
|
||||
g_value_set_int (value, src->capture_config.preview_parameters.opacity);
|
||||
break;
|
||||
case PROP_PREVIEW_X:
|
||||
g_value_set_int (value, src->capture_config.preview_parameters.previewWindow.x);
|
||||
break;
|
||||
case PROP_PREVIEW_Y:
|
||||
g_value_set_int (value, src->capture_config.preview_parameters.previewWindow.y);
|
||||
break;
|
||||
case PROP_PREVIEW_W:
|
||||
g_value_set_int (value, src->capture_config.preview_parameters.previewWindow.width);
|
||||
break;
|
||||
case PROP_PREVIEW_H:
|
||||
g_value_set_int (value, src->capture_config.preview_parameters.previewWindow.height);
|
||||
break;
|
||||
case PROP_SHARPNESS:
|
||||
g_value_set_int (value, src->capture_config.camera_parameters.sharpness);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue