libs: encoder: log out the name of the profile

Instead of printing a number, it is more readable to log out, in
case of error, the name of the failing profile.
This commit is contained in:
Víctor Manuel Jáquez Leal 2017-04-06 19:35:27 +02:00 committed by Víctor Manuel Jáquez Leal
parent 3dce250236
commit eee8a78173
6 changed files with 12 additions and 6 deletions

View file

@ -1030,7 +1030,8 @@ ensure_hw_profile (GstVaapiEncoderH264 * encoder)
/* ERRORS */
error_unsupported_profile:
{
GST_ERROR ("unsupported HW profile (0x%08x)", encoder->profile);
GST_ERROR ("unsupported HW profile %s",
gst_vaapi_profile_get_name (encoder->profile));
return FALSE;
}
}

View file

@ -907,7 +907,8 @@ ensure_hw_profile (GstVaapiEncoderH265 * encoder)
/* ERRORS */
error_unsupported_profile:
{
GST_ERROR ("unsupported HW profile (0x%08x)", encoder->profile);
GST_ERROR ("unsupported HW profile %s",
gst_vaapi_profile_get_name (encoder->profile));
return FALSE;
}
}

View file

@ -168,7 +168,8 @@ ensure_hw_profile (GstVaapiEncoderJpeg * encoder)
/* ERRORS */
error_unsupported_profile:
{
GST_ERROR ("unsupported HW profile (0x%08x)", encoder->profile);
GST_ERROR ("unsupported HW profile %s",
gst_vaapi_profile_get_name (encoder->profile));
return FALSE;
}
}

View file

@ -103,7 +103,8 @@ ensure_hw_profile (GstVaapiEncoderMpeg2 * encoder)
/* ERRORS */
error_unsupported_profile:
{
GST_ERROR ("unsupported HW profile (0x%08x)", encoder->profile);
GST_ERROR ("unsupported HW profile %s",
gst_vaapi_profile_get_name (encoder->profile));
return FALSE;
}
}

View file

@ -113,7 +113,8 @@ ensure_hw_profile (GstVaapiEncoderVP8 * encoder)
/* ERRORS */
error_unsupported_profile:
{
GST_ERROR ("unsupported HW profile (0x%08x)", encoder->profile);
GST_ERROR ("unsupported HW profile %s",
gst_vaapi_profile_get_name (encoder->profile));
return FALSE;
}
}

View file

@ -187,7 +187,8 @@ ensure_hw_profile (GstVaapiEncoderVP9 * encoder)
/* ERRORS */
error_unsupported_profile:
{
GST_ERROR ("unsupported HW profile (0x%08x)", encoder->profile);
GST_ERROR ("unsupported HW profile %s",
gst_vaapi_profile_get_name (encoder->profile));
return FALSE;
}
}