mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
v4l2: rely on gst_v4l2_dup() to set no_initial_format and keep_aspect
gst_v4l2_dup() will now take care of setting v4l2capture->no_initial_format and keep_aspect instead of doing it manually. Fix a typo as keep_aspect was set twice on v4l2output but never on v4l2capture. https://bugzilla.gnome.org/show_bug.cgi?id=795028
This commit is contained in:
parent
edd9c8f6b8
commit
2bbe877a6e
4 changed files with 1 additions and 6 deletions
|
@ -1079,8 +1079,6 @@ gst_v4l2_transform_subinstance_init (GTypeInstance * instance, gpointer g_class)
|
||||||
GST_OBJECT (GST_BASE_TRANSFORM_SRC_PAD (self)),
|
GST_OBJECT (GST_BASE_TRANSFORM_SRC_PAD (self)),
|
||||||
V4L2_BUF_TYPE_VIDEO_CAPTURE, klass->default_device,
|
V4L2_BUF_TYPE_VIDEO_CAPTURE, klass->default_device,
|
||||||
gst_v4l2_get_input, gst_v4l2_set_input, NULL);
|
gst_v4l2_get_input, gst_v4l2_set_input, NULL);
|
||||||
self->v4l2capture->no_initial_format = TRUE;
|
|
||||||
self->v4l2output->keep_aspect = FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -956,8 +956,6 @@ gst_v4l2_video_dec_subinstance_init (GTypeInstance * instance, gpointer g_class)
|
||||||
GST_OBJECT (GST_VIDEO_DECODER_SRC_PAD (self)),
|
GST_OBJECT (GST_VIDEO_DECODER_SRC_PAD (self)),
|
||||||
V4L2_BUF_TYPE_VIDEO_CAPTURE, klass->default_device,
|
V4L2_BUF_TYPE_VIDEO_CAPTURE, klass->default_device,
|
||||||
gst_v4l2_get_input, gst_v4l2_set_input, NULL);
|
gst_v4l2_get_input, gst_v4l2_set_input, NULL);
|
||||||
self->v4l2capture->no_initial_format = TRUE;
|
|
||||||
self->v4l2output->keep_aspect = FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -1042,8 +1042,6 @@ gst_v4l2_video_enc_subinstance_init (GTypeInstance * instance, gpointer g_class)
|
||||||
GST_OBJECT (GST_VIDEO_ENCODER_SRC_PAD (self)),
|
GST_OBJECT (GST_VIDEO_ENCODER_SRC_PAD (self)),
|
||||||
V4L2_BUF_TYPE_VIDEO_CAPTURE, klass->default_device,
|
V4L2_BUF_TYPE_VIDEO_CAPTURE, klass->default_device,
|
||||||
gst_v4l2_get_input, gst_v4l2_set_input, NULL);
|
gst_v4l2_get_input, gst_v4l2_set_input, NULL);
|
||||||
self->v4l2capture->no_initial_format = TRUE;
|
|
||||||
self->v4l2output->keep_aspect = FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -695,6 +695,7 @@ gst_v4l2_dup (GstV4l2Object * v4l2object, GstV4l2Object * other)
|
||||||
v4l2object->vcap.card, v4l2object->videodev);
|
v4l2object->vcap.card, v4l2object->videodev);
|
||||||
|
|
||||||
v4l2object->never_interlaced = other->never_interlaced;
|
v4l2object->never_interlaced = other->never_interlaced;
|
||||||
|
v4l2object->no_initial_format = other->no_initial_format;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue