From df5b8e09df21d96aaace4376318d5790d7c51cdc Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Mon, 28 Apr 2014 17:17:04 +0200 Subject: [PATCH 2/3] h264parse: fix build with older GStreamer 1.x stacks. --- gst/vaapi/gsth264parse.c | 4 +++- gst/vaapi/gsth264parse.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/vaapi/gsth264parse.c b/gst/vaapi/gsth264parse.c index 078ca83..fceec68 100644 --- a/gst/vaapi/gsth264parse.c +++ b/gst/vaapi/gsth264parse.c @@ -27,7 +27,7 @@ #endif #include "gstvaapiparse.h" -#include +#include #include #include #include "gsth264parse.h" @@ -164,7 +164,9 @@ gst_h264_parse_init (GstH264Parse * h264parse) { 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)); +#endif } diff --git a/gst/vaapi/gsth264parse.h b/gst/vaapi/gsth264parse.h index e056ca2..56d2612 100644 --- a/gst/vaapi/gsth264parse.h +++ b/gst/vaapi/gsth264parse.h @@ -27,6 +27,7 @@ #include #include +#include #include G_BEGIN_DECLS -- 2.1.4