diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-11-19 15:33:45 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-11-19 15:35:36 -0500 |
commit | 4ecd25d267e625a521332bc3aef15910d78c86bc (patch) | |
tree | 9e2e782edaafac22f2e39be68225319e57c5026d | |
parent | 0fffb8f2e2a4c710a1da4c08fd2eb295d368eacc (diff) |
v4l2: Fix capture/output-io-mode properties
There was some miss-match in the implementation. This makes it
concistent, though functionally it worked, except the video decoder
output-io-mode getter.
-rw-r--r-- | sys/v4l2/gstv4l2transform.c | 4 | ||||
-rw-r--r-- | sys/v4l2/gstv4l2videodec.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/v4l2/gstv4l2transform.c b/sys/v4l2/gstv4l2transform.c index 42aeb1347..f617ac4fd 100644 --- a/sys/v4l2/gstv4l2transform.c +++ b/sys/v4l2/gstv4l2transform.c @@ -73,8 +73,8 @@ gst_v4l2_transform_set_property (GObject * object, pspec); break; case PROP_CAPTURE_IO_MODE: - gst_v4l2_object_set_property_helper (self->v4l2capture, PROP_IO_MODE, - value, pspec); + gst_v4l2_object_set_property_helper (self->v4l2capture, prop_id, value, + pspec); break; /* By default, only set on output */ diff --git a/sys/v4l2/gstv4l2videodec.c b/sys/v4l2/gstv4l2videodec.c index f06e4f61c..142dbeb5c 100644 --- a/sys/v4l2/gstv4l2videodec.c +++ b/sys/v4l2/gstv4l2videodec.c @@ -90,13 +90,13 @@ gst_v4l2_video_dec_get_property (GObject * object, GstV4l2VideoDec *self = GST_V4L2_VIDEO_DEC (object); switch (prop_id) { - case PROP_IO_MODE: + case PROP_OUTPUT_IO_MODE: gst_v4l2_object_get_property_helper (self->v4l2output, prop_id, value, pspec); break; case PROP_CAPTURE_IO_MODE: - gst_v4l2_object_get_property_helper (self->v4l2output, PROP_IO_MODE, - value, pspec); + gst_v4l2_object_get_property_helper (self->v4l2capture, prop_id, value, + pspec); break; /* By default read from output */ |