mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
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:
parent
0c9ab49579
commit
b092c3f580
1 changed files with 4 additions and 2 deletions
|
@ -3506,11 +3506,13 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
|
||||||
if (format == GST_H264_PARSE_FORMAT_NONE) {
|
if (format == GST_H264_PARSE_FORMAT_NONE) {
|
||||||
/* codec_data implies avc */
|
/* codec_data implies avc */
|
||||||
if (codec_data_value != NULL) {
|
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;
|
format = GST_H264_PARSE_FORMAT_AVC;
|
||||||
} else {
|
} else {
|
||||||
/* otherwise assume bytestream input */
|
/* 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;
|
format = GST_H264_PARSE_FORMAT_BYTE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue