patches/videoparsers: h265parser: more API fences
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 14 Sep 2015 17:21:08 +0000 (19:21 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Tue, 15 Sep 2015 17:52:24 +0000 (19:52 +0200)
Add more API fences according with its version and refresh the patch.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=754845

patches/videoparsers/0006-h265parse-fix-build-with-GStreamer-1.5.patch [new file with mode: 0644]
patches/videoparsers/series.frag

diff --git a/patches/videoparsers/0006-h265parse-fix-build-with-GStreamer-1.5.patch b/patches/videoparsers/0006-h265parse-fix-build-with-GStreamer-1.5.patch
new file mode 100644 (file)
index 0000000..0bf8617
--- /dev/null
@@ -0,0 +1,48 @@
+From aaf9569d096392d73f45bcf9973d58b90a7ecd27 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?=
+ <victorx.jaquez@intel.com>
+Date: Mon, 14 Sep 2015 19:11:59 +0200
+Subject: [PATCH 6/6] h265parse: fix build with GStreamer < 1.5
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
+---
+ gst/vaapi/gsth265parse.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/gst/vaapi/gsth265parse.c b/gst/vaapi/gsth265parse.c
+index 5f65ab6..35b0812 100644
+--- a/gst/vaapi/gsth265parse.c
++++ b/gst/vaapi/gsth265parse.c
+@@ -141,8 +141,12 @@ gst_h265_parse_init (GstH265Parse * h265parse)
+ {
+   h265parse->frame_out = gst_adapter_new ();
+   gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (h265parse), FALSE);
++#if GST_CHECK_VERSION(1,3,0)
+   GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (h265parse));
++#endif
++#if GST_CHECK_VERSION(1,5,0)
+   GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (h265parse));
++#endif
+ }
+
+
+@@ -1774,8 +1778,14 @@ gst_h265_parse_pre_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
+         GST_TAG_VIDEO_CODEC, caps);
+     gst_caps_unref (caps);
+
++#if GST_CHECK_VERSION(1,5,0)
+     gst_base_parse_merge_tags (parse, taglist, GST_TAG_MERGE_REPLACE);
+     gst_tag_list_unref (taglist);
++#else
++    gst_pad_push_event (GST_BASE_PARSE_SRC_PAD (h265parse),
++        gst_event_new_tag (taglist));
++#endif
++
+
+     /* also signals the end of first-frame processing */
+     h265parse->sent_codec_tag = TRUE;
+--
+2.5.1
index acc8a2fac9ad60de6c415bb47a55a6a6f8736abe..5d06453a8409839c34b57baaae31930c6249c3bc 100644 (file)
@@ -6,4 +6,5 @@ videoparsers_patches_base = \
         0003-h264parse-default-to-byte-stream-nalu-format-Annex-B.patch \
         0004-h264parse-Disable-3D-video-support-for-GStreamer-1.5.patch \
         0005-h265parse-include-gstvaapiparse.h.patch \
+        0006-h265parse-fix-build-with-GStreamer-1.5.patch \
        $(NULL)