Add v4l2convert element support
Add patch from 1.15.1 to support v4l2convert. It is the userland control
for mdp feature.
Change-Id: Icfb0a0fb5f4390630080106a740fb352c5cd0714
diff --git a/debian/patches/0002-v4l2convert.patch b/debian/patches/0002-v4l2convert.patch
new file mode 100644
index 0000000..83e351d
--- /dev/null
+++ b/debian/patches/0002-v4l2convert.patch
@@ -0,0 +1,30 @@
+From b1185b61dac1524ae913e8d71a3ee0e43f70c74d Mon Sep 17 00:00:00 2001
+From: Michael Tretter <m.tretter@pengutronix.de>
+Date: Sun, 1 Jul 2018 15:27:32 -0400
+Subject: [PATCH] v4l2transform: Implement stable element name
+
+The first converter to be found will now gain the name v4l2convert.
+Other converters will be named after the m2m dev node end point they are
+attached to.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=784958
+---
+ sys/v4l2/gstv4l2transform.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/sys/v4l2/gstv4l2transform.c b/sys/v4l2/gstv4l2transform.c
+index 2f01375b..a9294e23 100644
+--- a/sys/v4l2/gstv4l2transform.c
++++ b/sys/v4l2/gstv4l2transform.c
+@@ -1192,7 +1192,10 @@ gst_v4l2_transform_register (GstPlugin * plugin, const gchar * basename,
+ type_info.class_data = cdata;
+ type_info.instance_init = gst_v4l2_transform_subinstance_init;
+
+- type_name = g_strdup_printf ("v4l2%sconvert", basename);
++ if (g_type_from_name ("v4l2convert") != 0)
++ type_name = g_strdup_printf ("v4l2%sconvert", basename);
++ else
++ type_name = g_strdup ("v4l2convert");
+ subtype = g_type_register_static (type, type_name, &type_info, 0);
+
+ if (!gst_element_register (plugin, type_name, GST_RANK_NONE, subtype))
diff --git a/debian/patches/series b/debian/patches/series
index 5a5022b..84d54cd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-mtk.patch
+0002-v4l2convert.patch