From b3c71584e0b8cfe7cd6ebf111197d6e6cad733d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 3 Feb 2022 10:10:44 +0100 Subject: [PATCH] va: decoder: Log profile name. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvadecoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvadecoder.c b/subprojects/gst-plugins-bad/sys/va/gstvadecoder.c index 961f066653..2b80f7207f 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvadecoder.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvadecoder.c @@ -27,6 +27,7 @@ #include "gstvaallocator.h" #include "gstvacaps.h" #include "gstvadisplay_priv.h" +#include "gstvaprofile.h" #include "gstvavideoformat.h" struct _GstVaDecoder @@ -231,7 +232,8 @@ gst_va_decoder_open (GstVaDecoder * self, VAProfile profile, guint rt_format) return TRUE; if (!gst_va_decoder_has_profile (self, profile)) { - GST_ERROR_OBJECT (self, "Unsupported profile: %d", profile); + GST_ERROR_OBJECT (self, "Unsupported profile: %s", + gst_va_profile_name (profile)); return FALSE; }