From 71e4936e5e1d1417f2df1afeac955d35063fd372 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Wed, 1 Aug 2012 18:30:27 +0200 Subject: [PATCH] display: drop VAProfileNone entries from debug messages. --- gst-libs/gst/vaapi/gstvaapidisplay.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c b/gst-libs/gst/vaapi/gstvaapidisplay.c index 90d695e68f..1f82f33ebf 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay.c +++ b/gst-libs/gst/vaapi/gstvaapidisplay.c @@ -465,8 +465,14 @@ gst_vaapi_display_create(GstVaapiDisplay *display) goto end; GST_DEBUG("%d profiles", n); - for (i = 0; i < n; i++) + for (i = 0; i < n; i++) { +#if VA_CHECK_VERSION(0,34,0) + /* Introduced in VA/VPP API */ + if (profiles[i] == VAProfileNone) + continue; +#endif GST_DEBUG(" %s", string_of_VAProfile(profiles[i])); + } priv->decoders = g_array_new(FALSE, FALSE, sizeof(GstVaapiConfig)); if (!priv->decoders)