From b092c3f580718bc8704871b374d2586c313c4931 Mon Sep 17 00:00:00 2001 From: Shengqi Yu Date: Fri, 19 May 2023 15:10:12 +0800 Subject: [PATCH] h264parse: adjust some logs printing level in h264parse adjust log level from GST_ERROR to GST_WARNING when h264 caps have codec_data but no avc format or have no codec data or stream-format. Because theses are not real errors, it is easy to mislead if print error logs. Part-of: --- subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c b/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c index fb0145bbcb..760163ce16 100644 --- a/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c +++ b/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c @@ -3506,11 +3506,13 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps) if (format == GST_H264_PARSE_FORMAT_NONE) { /* codec_data implies avc */ if (codec_data_value != NULL) { - GST_ERROR ("video/x-h264 caps with codec_data but no stream-format=avc"); + GST_WARNING_OBJECT (h264parse, "video/x-h264 caps with codec_data " + "but no stream-format=avc"); format = GST_H264_PARSE_FORMAT_AVC; } else { /* otherwise assume bytestream input */ - GST_ERROR ("video/x-h264 caps without codec_data or stream-format"); + GST_WARNING_OBJECT (h264parse, "video/x-h264 caps without codec_data " + "or stream-format"); format = GST_H264_PARSE_FORMAT_BYTE; } }