mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
patches/videoparsers: h265parser: more API fences
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
This commit is contained in:
parent
5524af5c0a
commit
d20ae26673
2 changed files with 49 additions and 0 deletions
|
@ -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
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue