mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
jpegparse: demote and promote log messages level
Before those levels where when implementing the plugin. Now these levels are for reporting issues from users. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4039>
This commit is contained in:
parent
d8feddcc0c
commit
235f29ec84
1 changed files with 3 additions and 3 deletions
|
@ -740,7 +740,7 @@ gst_jpeg_parse_handle_frame (GstBaseParse * bparse, GstBaseParseFrame * frame,
|
||||||
|
|
||||||
/* check if the whole segment is available */
|
/* check if the whole segment is available */
|
||||||
if (offset + seg.size > mapinfo.size) {
|
if (offset + seg.size > mapinfo.size) {
|
||||||
GST_INFO_OBJECT (parse, "incomplete segment: %x [offset %d]", marker,
|
GST_DEBUG_OBJECT (parse, "incomplete segment: %x [offset %d]", marker,
|
||||||
offset);
|
offset);
|
||||||
parse->last_offset = offset - 2;
|
parse->last_offset = offset - 2;
|
||||||
goto beach;
|
goto beach;
|
||||||
|
@ -748,7 +748,7 @@ gst_jpeg_parse_handle_frame (GstBaseParse * bparse, GstBaseParseFrame * frame,
|
||||||
|
|
||||||
offset += seg.size;
|
offset += seg.size;
|
||||||
|
|
||||||
GST_INFO_OBJECT (parse, "marker found: %x [offset %d / size %"
|
GST_LOG_OBJECT (parse, "marker found: %x [offset %d / size %"
|
||||||
G_GSSIZE_FORMAT "]", marker, seg.offset, seg.size);
|
G_GSSIZE_FORMAT "]", marker, seg.offset, seg.size);
|
||||||
|
|
||||||
switch (marker) {
|
switch (marker) {
|
||||||
|
@ -764,7 +764,7 @@ gst_jpeg_parse_handle_frame (GstBaseParse * bparse, GstBaseParseFrame * frame,
|
||||||
GST_MINI_OBJECT_FLAGS (frame->out_buffer) |=
|
GST_MINI_OBJECT_FLAGS (frame->out_buffer) |=
|
||||||
GST_BUFFER_FLAG_CORRUPTED;
|
GST_BUFFER_FLAG_CORRUPTED;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (parse, "Push a frame without EOI, size %d",
|
GST_WARNING_OBJECT (parse, "Push a frame without EOI, size %d",
|
||||||
seg.offset - 2);
|
seg.offset - 2);
|
||||||
return gst_jpeg_parse_finish_frame (parse, frame, seg.offset - 2);
|
return gst_jpeg_parse_finish_frame (parse, frame, seg.offset - 2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue