v4l2videoenc: fix capture-io-mode property get
authorPeter Seiderer <ps.report@gmx.net>
Thu, 11 Jan 2018 09:44:18 +0000 (10:44 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 12 Jan 2018 14:21:18 +0000 (09:21 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=791841

sys/v4l2/gstv4l2videoenc.c

index 4a1a8af..5f2daaf 100644 (file)
@@ -95,8 +95,8 @@ gst_v4l2_video_enc_get_property (GObject * object,
           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 */