summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2020-04-02 15:19:41 +0800
committerHe Junyan <junyan.he@hotmail.com>2020-04-02 15:23:05 +0800
commit80b6e006bc1d269bedcb8426325ee969f5708317 (patch)
tree599c4008863a5478d6ea7dade3a3209be9205698 /gst-libs
parentf680a8cba12da81f7bcb97121b888e4f74b27ea4 (diff)
libs: encoder: fix an inexact trace info in chroma type check.
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder.c b/gst-libs/gst/vaapi/gstvaapiencoder.c
index 2f97bd9b..5709ba69 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;
}
}