va: decoder: Log profile name.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1675>
This commit is contained in:
Víctor Manuel Jáquez Leal 2022-02-03 10:10:44 +01:00
parent df6c985474
commit b3c71584e0

View 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;
}