jpegparse: dump whole failed app marker

Instead of just log the parsed string. It's better for debugging.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5838>
This commit is contained in:
Víctor Manuel Jáquez Leal 2023-12-20 20:35:32 +01:00
parent 658b5b4399
commit 367deef132

View file

@ -521,7 +521,8 @@ gst_jpeg_parse_app0 (GstJpegParse * parse, GstJpegSegment * seg)
return TRUE;
}
GST_DEBUG_OBJECT (parse, "Unhandled app0: %s", id_str);
GST_MEMDUMP_OBJECT (parse, "Unhandled app0", seg->data + seg->offset,
seg->size);
return TRUE;
}
@ -594,7 +595,8 @@ gst_jpeg_parse_app1 (GstJpegParse * parse, GstJpegSegment * seg)
return TRUE;
}
GST_DEBUG_OBJECT (parse, "Unhandled app1: %s", id_str);
GST_MEMDUMP_OBJECT (parse, "Unhandled app1", seg->data + seg->offset,
seg->size);
return TRUE;
}