v4l2: rely on gst_v4l2_dup() to set no_initial_format and keep_aspect
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 13 Apr 2018 11:29:06 +0000 (13:29 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 26 Apr 2018 19:36:16 +0000 (15:36 -0400)
commit2bbe877a6efc814eddd9e35386cbbd0e0064a239
tree5d4b3a0c89e03966fbd127c38de1e63f0fa9da1b
parentedd9c8f6b874f19fb74436c599effc03a655b969
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
sys/v4l2/gstv4l2transform.c
sys/v4l2/gstv4l2videodec.c
sys/v4l2/gstv4l2videoenc.c
sys/v4l2/v4l2_calls.c