From 80b6e006bc1d269bedcb8426325ee969f5708317 Mon Sep 17 00:00:00 2001 From: He Junyan Date: Thu, 2 Apr 2020 15:19:41 +0800 Subject: [PATCH] libs: encoder: fix an inexact trace info in chroma type check. --- gst-libs/gst/vaapi/gstvaapiencoder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiencoder.c b/gst-libs/gst/vaapi/gstvaapiencoder.c index 2f97bd9b16..5709ba6911 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder.c @@ -681,8 +681,9 @@ is_chroma_type_supported (GstVaapiEncoder * encoder) /* ERRORS */ unsupported: { - GST_ERROR ("We only support YUV 4:2:0 and YUV 4:2:2 for encoding. " - "Please try to use vaapipostproc to convert the input format."); + GST_ERROR ("The encoding format %s is not supported, " + "Please try to use vaapipostproc to convert the input format.", + gst_video_format_to_string (fmt)); return FALSE; } }