1
From 92908c46e7dd90063a613742f285e9c494c90d6f Mon Sep 17 00:00:00 2001
2
From: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
3
Date: Mon, 28 Apr 2014 17:17:04 +0200
4
Subject: [PATCH 2/3] h264parse: fix build with older GStreamer 1.x stacks.
7
gst/vaapi/gsth264parse.c | 4 +++-
8
gst/vaapi/gsth264parse.h | 1 +
9
2 files changed, 4 insertions(+), 1 deletion(-)
11
diff --git a/gst/vaapi/gsth264parse.c b/gst/vaapi/gsth264parse.c
12
index 678c7f7..37ce228 100644
13
--- a/gst/vaapi/gsth264parse.c
14
+++ b/gst/vaapi/gsth264parse.c
18
#include "gstvaapiparse.h"
19
-#include <gst/base/base.h>
20
+#include <gst/base/gstbytewriter.h>
21
#include <gst/pbutils/pbutils.h>
22
#include <gst/video/video.h>
23
#include "gsth264parse.h"
24
@@ -148,7 +148,9 @@ gst_h264_parse_init (GstH264Parse * h264parse)
26
h264parse->frame_out = gst_adapter_new ();
27
gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (h264parse), FALSE);
28
+#if GST_CHECK_VERSION(1,3,0)
29
GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (h264parse));
34
diff --git a/gst/vaapi/gsth264parse.h b/gst/vaapi/gsth264parse.h
35
index 4c3fdd4..3db8f21 100644
36
--- a/gst/vaapi/gsth264parse.h
37
+++ b/gst/vaapi/gsth264parse.h
41
#include <gst/base/gstbaseparse.h>
42
+#include <gst/base/gstadapter.h>
43
#include <gst/codecparsers/gsth264parser.h>