va: decoder: Log profile name.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 3 Feb 2022 09:10:44 +0000 (10:10 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 9 Feb 2022 11:25:24 +0000 (12:25 +0100)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1675>

subprojects/gst-plugins-bad/sys/va/gstvadecoder.c

index 961f066..2b80f72 100644 (file)
@@ -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;
   }