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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4675>
This commit is contained in:
Shengqi Yu 2023-05-19 15:10:12 +08:00 committed by GStreamer Marge Bot
parent 0c9ab49579
commit b092c3f580

View file

@ -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;
}
}