libs: encoder: fix an inexact trace info in chroma type check.
authorHe Junyan <junyan.he@hotmail.com>
Thu, 2 Apr 2020 07:19:41 +0000 (15:19 +0800)
committerHe Junyan <junyan.he@hotmail.com>
Thu, 2 Apr 2020 07:23:05 +0000 (15:23 +0800)
gst-libs/gst/vaapi/gstvaapiencoder.c

index 2f97bd9..5709ba6 100644 (file)
@@ -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;
   }
 }