mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
v4l2object: set only one plane for encoded format
https://bugzilla.gnome.org/show_bug.cgi?id=720568
This commit is contained in:
parent
e2c32ec997
commit
582f913667
1 changed files with 4 additions and 4 deletions
|
@ -2571,11 +2571,11 @@ gst_v4l2_object_set_format (GstV4l2Object * v4l2object, GstCaps * caps)
|
||||||
format.fmt.pix_mp.field != field) {
|
format.fmt.pix_mp.field != field) {
|
||||||
/* even in v4l2 multiplanar mode we can work in contiguous mode
|
/* even in v4l2 multiplanar mode we can work in contiguous mode
|
||||||
* if the device supports it */
|
* if the device supports it */
|
||||||
gint n_v4l_planes;
|
gint n_v4l_planes = GST_VIDEO_INFO_N_PLANES (&info);
|
||||||
|
|
||||||
if (v4l2object->prefered_non_contiguous)
|
/* if encoded format (GST_VIDEO_INFO_N_PLANES return 0)
|
||||||
n_v4l_planes = GST_VIDEO_INFO_N_PLANES (&info);
|
* or if contiguous is prefered */
|
||||||
else
|
if (!n_v4l_planes || !v4l2object->prefered_non_contiguous)
|
||||||
n_v4l_planes = 1;
|
n_v4l_planes = 1;
|
||||||
|
|
||||||
/* something different, set the format */
|
/* something different, set the format */
|
||||||
|
|
Loading…
Reference in a new issue