summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Cox <adrian@humboldt.co.uk>2015-06-17 12:41:28 +0300
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2015-06-17 12:41:28 +0300
commit64acc74d1795c3f5cadddc550e5d4c77257a878d (patch)
treee789b4ba919a94580cbe2c6c2c361e6fec064737
parent3241296f67be75a100a7926eee5a7918dd66dc08 (diff)
vaapisink: Expose the overlay capability for compatibility with dvbsuboverlay.
https://bugzilla.gnome.org/show_bug.cgi?id=750095 Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com> Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
-rw-r--r--gst/vaapi/gstvaapisink.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/gst/vaapi/gstvaapisink.c b/gst/vaapi/gstvaapisink.c
index bc89cff7..26ea5bf4 100644
--- a/gst/vaapi/gstvaapisink.c
+++ b/gst/vaapi/gstvaapisink.c
@@ -57,9 +57,19 @@ GST_DEBUG_CATEGORY_STATIC (gst_debug_vaapisink);
/* Default template */
/* *INDENT-OFF* */
static const char gst_vaapisink_sink_caps_str[] =
- GST_VIDEO_CAPS_MAKE_WITH_FEATURES (GST_CAPS_FEATURE_MEMORY_VAAPI_SURFACE,
- "{ ENCODED, NV12, I420, YV12 }") ";"
- GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL);
+ GST_VIDEO_CAPS_MAKE_WITH_FEATURES (
+ GST_CAPS_FEATURE_MEMORY_VAAPI_SURFACE
+#if GST_CHECK_VERSION(1,3,1)
+ "," GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION
+#endif
+ ,"{ ENCODED, NV12, I420, YV12 }") ";"
+#if GST_CHECK_VERSION(1,3,1)
+ GST_VIDEO_CAPS_MAKE_WITH_FEATURES (
+ GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION,
+ GST_VIDEO_FORMATS_ALL);
+#else
+ GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL);
+#endif
/* *INDENT-ON* */
static GstStaticPadTemplate gst_vaapisink_sink_factory =