From: Philipp Zabel
Date: Fri, 20 May 2016 10:49:53 +0000 (+0200)
Subject: v4l2transform: allow to change pixel aspect ratio
X-Git-Tag: 1.10.4~350
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3eeef5fa097c23821da7297281bc2e7a24f6f1ab;p=platform%2Fupstream%2Fgst-plugins-good.git
v4l2transform: allow to change pixel aspect ratio
Scalers may change width and height independently,
allow to change pixel aspect ratio.
https://bugzilla.gnome.org/show_bug.cgi?id=766712
---
diff --git a/sys/v4l2/gstv4l2transform.c b/sys/v4l2/gstv4l2transform.c
index 7819129..2e29f10 100644
--- a/sys/v4l2/gstv4l2transform.c
+++ b/sys/v4l2/gstv4l2transform.c
@@ -375,7 +375,7 @@ gst_v4l2_transform_caps_remove_format_info (GstCaps * caps)
&& gst_caps_features_is_equal (f,
GST_CAPS_FEATURES_MEMORY_SYSTEM_MEMORY))
gst_structure_remove_fields (st, "format", "colorimetry", "chroma-site",
- "width", "height", NULL);
+ "width", "height", "pixel-aspect-ratio", NULL);
gst_caps_append_structure_full (res, st, gst_caps_features_copy (f));
}