diff options
author | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2017-04-06 19:35:27 +0200 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2017-06-13 13:51:01 +0200 |
commit | eee8a781735bfa1a69f35631bf907aaa7b5deec0 (patch) | |
tree | b482c0ffc00a868e80ed34888ffc10384446b902 /gst-libs | |
parent | 3dce250236c06e6a078ff04a840be2482c6f6d43 (diff) |
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.
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_h264.c | 3 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_h265.c | 3 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_jpeg.c | 3 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c | 3 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_vp8.c | 3 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_vp9.c | 3 |
6 files changed, 12 insertions, 6 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c index 969f2fdd..b76ccb63 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c @@ -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; } } diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c index b8cd97cb..7bcb54f3 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c @@ -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; } } diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_jpeg.c b/gst-libs/gst/vaapi/gstvaapiencoder_jpeg.c index b335d978..73bee563 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_jpeg.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_jpeg.c @@ -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; } } diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c index ab074071..04fbd0dc 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c @@ -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; } } diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_vp8.c b/gst-libs/gst/vaapi/gstvaapiencoder_vp8.c index 93575277..a448df8e 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_vp8.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_vp8.c @@ -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; } } diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c b/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c index 35b4f7e6..80de4b03 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c @@ -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; } } |