v4l2: Fix capture/output-io-mode properties
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 19 Nov 2015 20:33:45 +0000 (15:33 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 19 Nov 2015 20:35:36 +0000 (15:35 -0500)
There was some miss-match in the implementation. This makes it
concistent, though functionally it worked, except the video decoder
output-io-mode getter.

sys/v4l2/gstv4l2transform.c
sys/v4l2/gstv4l2videodec.c

index 42aeb13..f617ac4 100644 (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 */
index f06e4f6..142dbeb 100644 (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 */