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>
This commit is contained in:
Adrian Cox 2015-06-17 12:41:28 +03:00 committed by Sreerenj Balachandran
parent 3241296f67
commit 64acc74d17

View file

@ -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 =