vaapisink: Fix the conditional pad template creation.

This commit is contained in:
Sreerenj Balachandran 2015-06-18 14:55:12 +03:00
parent 2d64321313
commit 34a4748d3d

View file

@ -65,13 +65,11 @@ static const char gst_vaapisink_sink_caps_str[] =
GST_CAPS_FEATURE_MEMORY_VAAPI_SURFACE "," GST_CAPS_FEATURE_MEMORY_VAAPI_SURFACE ","
GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION, GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION,
"{ ENCODED, NV12, I420, YV12 }") ";" "{ ENCODED, NV12, I420, YV12 }") ";"
#endif
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL) ";"
#if GST_CHECK_VERSION(1,3,1)
GST_VIDEO_CAPS_MAKE_WITH_FEATURES ( GST_VIDEO_CAPS_MAKE_WITH_FEATURES (
GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION, GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION,
GST_VIDEO_FORMATS_ALL); GST_VIDEO_FORMATS_ALL) ";"
#endif #endif
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL);
/* *INDENT-ON* */ /* *INDENT-ON* */
static GstStaticPadTemplate gst_vaapisink_sink_factory = static GstStaticPadTemplate gst_vaapisink_sink_factory =