mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
v4l2videoenc: add property set/get PROP_CAPTURE_IO_MODE error handling
https://bugzilla.gnome.org/show_bug.cgi?id=791841
This commit is contained in:
parent
5c0cf56193
commit
f579ece0fb
1 changed files with 8 additions and 4 deletions
|
@ -65,8 +65,10 @@ gst_v4l2_video_enc_set_property (GObject * object,
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_CAPTURE_IO_MODE:
|
case PROP_CAPTURE_IO_MODE:
|
||||||
gst_v4l2_object_set_property_helper (self->v4l2capture,
|
if (!gst_v4l2_object_set_property_helper (self->v4l2capture,
|
||||||
prop_id, value, pspec);
|
prop_id, value, pspec)) {
|
||||||
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* By default, only set on output */
|
/* By default, only set on output */
|
||||||
|
@ -87,8 +89,10 @@ gst_v4l2_video_enc_get_property (GObject * object,
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case PROP_CAPTURE_IO_MODE:
|
case PROP_CAPTURE_IO_MODE:
|
||||||
gst_v4l2_object_get_property_helper (self->v4l2capture,
|
if (!gst_v4l2_object_get_property_helper (self->v4l2capture,
|
||||||
prop_id, value, pspec);
|
prop_id, value, pspec)) {
|
||||||
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* By default read from output */
|
/* By default read from output */
|
||||||
|
|
Loading…
Reference in a new issue