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.
This commit is contained in:
Nicolas Dufresne 2015-11-19 15:33:45 -05:00
parent 0fffb8f2e2
commit 4ecd25d267
2 changed files with 5 additions and 5 deletions

View file

@ -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 */

View file

@ -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 */