mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 19:18:31 +00:00
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:
parent
3dce250236
commit
eee8a78173
6 changed files with 12 additions and 6 deletions
|
@ -1030,7 +1030,8 @@ ensure_hw_profile (GstVaapiEncoderH264 * encoder)
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
error_unsupported_profile:
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -907,7 +907,8 @@ ensure_hw_profile (GstVaapiEncoderH265 * encoder)
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
error_unsupported_profile:
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,7 +168,8 @@ ensure_hw_profile (GstVaapiEncoderJpeg * encoder)
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
error_unsupported_profile:
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,7 +103,8 @@ ensure_hw_profile (GstVaapiEncoderMpeg2 * encoder)
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
error_unsupported_profile:
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,7 +113,8 @@ ensure_hw_profile (GstVaapiEncoderVP8 * encoder)
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
error_unsupported_profile:
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,7 +187,8 @@ ensure_hw_profile (GstVaapiEncoderVP9 * encoder)
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
error_unsupported_profile:
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue