gstreamer/patches/videoparsers/0002-h264parse-fix-build-with-older-GStreamer-1.x-stacks.patch

41 lines
1.2 KiB
Diff
Raw Normal View History

From cb4349b2f36194fbdd557eb11175d83fac144158 Mon Sep 17 00:00:00 2001
2014-07-03 16:01:09 +00:00
From: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Date: Wed, 26 Aug 2015 06:50:41 +0300
Subject: [PATCH 2/2] h264parse: fix build with older GStreamer 1.x stacks
2014-07-03 16:01:09 +00:00
---
gst/vaapi/gsth264parse.c | 2 ++
gst/vaapi/gsth264parse.h | 1 +
2 files changed, 3 insertions(+)
2014-07-03 16:01:09 +00:00
diff --git a/gst/vaapi/gsth264parse.c b/gst/vaapi/gsth264parse.c
index 8f3b225..a3d2952 100644
--- a/gst/vaapi/gsth264parse.c
+++ b/gst/vaapi/gsth264parse.c
@@ -165,8 +165,10 @@ gst_h264_parse_init (GstH264Parse * h264parse)
2014-07-03 16:01:09 +00:00
{
h264parse->frame_out = gst_adapter_new ();
gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (h264parse), FALSE);
+#if GST_CHECK_VERSION(1,3,0)
GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (h264parse));
GST_PAD_SET_ACCEPT_TEMPLATE (GST_BASE_PARSE_SINK_PAD (h264parse));
2014-07-03 16:01:09 +00:00
+#endif
}
diff --git a/gst/vaapi/gsth264parse.h b/gst/vaapi/gsth264parse.h
index 58d818c..617e616 100644
--- a/gst/vaapi/gsth264parse.h
+++ b/gst/vaapi/gsth264parse.h
2014-07-03 16:01:09 +00:00
@@ -27,6 +27,7 @@
#include <gst/gst.h>
#include <gst/base/gstbaseparse.h>
+#include <gst/base/gstadapter.h>
#include <gst/codecparsers/gsth264parser.h>
#include <gst/video/video.h>
2014-07-03 16:01:09 +00:00
--
2.1.4
2014-07-03 16:01:09 +00:00