[OE-core] [poky][PATCH] gstreamer1.0-plugins-good: Remove gst_meta_ximage_transform function

Yuqing Zhu carol.zhu at nxp.com
Tue Oct 11 10:48:25 UTC 2016


Remove the transform function as it is not supported. 

Or gst_buffer_copy_into() will print ERROR log.

Signed-off-by: Yuqing Zhu <carol.zhu at nxp.com>
---
 ...shouldn-t-implement-transform-if-don-t-su.patch | 48 ++++++++++++++++++++++
 .../gstreamer/gstreamer1.0-plugins-good_1.8.3.bb   |  1 +
 2 files changed, 49 insertions(+)
 create mode 100755 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0002-ximageutil-shouldn-t-implement-transform-if-don-t-su.patch

diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0002-ximageutil-shouldn-t-implement-transform-if-don-t-su.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0002-ximageutil-shouldn-t-implement-transform-if-don-t-su.patch
new file mode 100755
index 0000000..a73f16e
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0002-ximageutil-shouldn-t-implement-transform-if-don-t-su.patch
@@ -0,0 +1,48 @@
+From 17b1abd8491d87fab389654f313b72bded24afc2 Mon Sep 17 00:00:00 2001
+From: Song Bing <bing.song at nxp.com>
+Date: Tue, 26 Apr 2016 16:49:33 +0800
+Subject: [PATCH] ximageutil: shouldn't implement transform if don't support
+ it.
+
+shouldn't implement transform if don't support it. Or
+gst_buffer_copy_into() will print ERROR log.
+
+Upstream-Status: Backport [1.9.1]
+
+https://bugzilla.gnome.org/show_bug.cgi?id=765583
+---
+ sys/ximage/ximageutil.c |   11 +----------
+ 1 file changed, 1 insertion(+), 10 deletions(-)
+
+diff --git a/sys/ximage/ximageutil.c b/sys/ximage/ximageutil.c
+index ac2fd49..add0422 100644
+--- a/sys/ximage/ximageutil.c
++++ b/sys/ximage/ximageutil.c
+@@ -36,15 +36,6 @@ gst_meta_ximage_api_get_type (void)
+   return type;
+ }
+ 
+-static gboolean
+-gst_meta_ximage_transform (GstBuffer * dest, GstMeta * meta,
+-    GstBuffer * buffer, GQuark type, gpointer data)
+-{
+-  /* ximage metadata can't be transformed or copied */
+-
+-  return FALSE;
+-}
+-
+ const GstMetaInfo *
+ gst_meta_ximage_get_info (void)
+ {
+@@ -54,7 +45,7 @@ gst_meta_ximage_get_info (void)
+     const GstMetaInfo *meta =
+         gst_meta_register (gst_meta_ximage_api_get_type (), "GstMetaXImageSrc",
+         sizeof (GstMetaXImage), (GstMetaInitFunction) NULL,
+-        (GstMetaFreeFunction) NULL, gst_meta_ximage_transform);
++        (GstMetaFreeFunction) NULL, (GstMetaTransformFunction) NULL);
+     g_once_init_leave (&meta_ximage_info, meta);
+   }
+   return meta_ximage_info;
+-- 
+1.7.9.5
+
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.8.3.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.8.3.bb
index 5cc6578..34b6008 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.8.3.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.8.3.bb
@@ -9,6 +9,7 @@ SRC_URI = " \
     file://0001-gstrtpmp4gpay-set-dafault-value-for-MPEG4-without-co.patch \
     file://avoid-including-sys-poll.h-directly.patch \
     file://ensure-valid-sentinel-for-gst_structure_get.patch \
+    file://0002-ximageutil-shouldn-t-implement-transform-if-don-t-su.patch \
 "
 
 SRC_URI[md5sum] = "473ebb1f15c67de99ddb6e4d027c0876"
-- 
1.9.1




More information about the Openembedded-core mailing list