mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
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:
parent
0fffb8f2e2
commit
4ecd25d267
2 changed files with 5 additions and 5 deletions
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue