summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapisink.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2015-04-03 17:09:08 +0300
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2015-04-03 17:09:08 +0300
commit8b36e25f477b165a4c1b3c08961d9bf1b51b1e4a (patch)
tree421802646f4c9a9243be29ff0b49698a8439528c /gst/vaapi/gstvaapisink.c
parentc561b8da8aa266963cbe8fc6e1d43984e2a44aed (diff)
downloadgst-vaapi-8b36e25f477b165a4c1b3c08961d9bf1b51b1e4a.tar.gz
Removal of gstreamer-1.0 support
The support for GStreamer 1.0 has been obsoleted in 0.5.10 release. GStreamer 1.2 is the a minimal requirement for building the gstreamer-vaapi. This patch removes all the pre-processor conditional code compilation guarded for gstreamer-1.0. Thus, all the video converters were removed too. https://bugzilla.gnome.org/show_bug.cgi?id=745728 Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com> Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
Diffstat (limited to 'gst/vaapi/gstvaapisink.c')
-rw-r--r--gst/vaapi/gstvaapisink.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gst/vaapi/gstvaapisink.c b/gst/vaapi/gstvaapisink.c
index 1b30fa5a..75310c48 100644
--- a/gst/vaapi/gstvaapisink.c
+++ b/gst/vaapi/gstvaapisink.c
@@ -57,14 +57,9 @@ GST_DEBUG_CATEGORY_STATIC (gst_debug_vaapisink);
/* Default template */
/* *INDENT-OFF* */
static const char gst_vaapisink_sink_caps_str[] =
-#if GST_CHECK_VERSION(1,1,0)
GST_VIDEO_CAPS_MAKE_WITH_FEATURES (GST_CAPS_FEATURE_MEMORY_VAAPI_SURFACE,
"{ ENCODED, NV12, I420, YV12 }") ";"
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL);
-#else
- GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) "; "
- GST_VAAPI_SURFACE_CAPS;
-#endif
/* *INDENT-ON* */
static GstStaticPadTemplate gst_vaapisink_sink_factory =
@@ -1203,11 +1198,7 @@ gst_vaapisink_get_caps_impl (GstBaseSink * base_sink)
GstVaapiSink *const sink = GST_VAAPISINK_CAST (base_sink);
GstCaps *out_caps, *yuv_caps;
-#if GST_CHECK_VERSION(1,1,0)
out_caps = gst_static_pad_template_get_caps (&gst_vaapisink_sink_factory);
-#else
- out_caps = gst_caps_from_string (GST_VAAPI_SURFACE_CAPS);
-#endif
if (!out_caps)
return NULL;