mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
jpegparse: log id when skipping an unhandled APP marker
https://bugzilla.gnome.org/show_bug.cgi?id=626618
This commit is contained in:
parent
a1f77eda32
commit
81991e3323
1 changed files with 15 additions and 2 deletions
|
@ -520,11 +520,24 @@ gst_jpeg_parse_skip_marker (GstJpegParse * parse,
|
|||
if (!gst_byte_reader_get_uint16_be (reader, &size))
|
||||
return FALSE;
|
||||
|
||||
#ifndef GST_DISABLE_DEBUG
|
||||
/* We'd pry the id of the skipped application segment */
|
||||
if (marker >= APP0 && marker <= APP15) {
|
||||
const gchar *id_str = NULL;
|
||||
|
||||
if (!gst_byte_reader_peek_string_utf8 (reader, &id_str))
|
||||
return FALSE;
|
||||
|
||||
GST_LOG_OBJECT (parse, "unhandled marker %x: '%s' skiping %u bytes",
|
||||
marker, id_str ? id_str : "(NULL)", size);
|
||||
}
|
||||
#else
|
||||
GST_LOG_OBJECT (parse, "unhandled marker %x skiping %u bytes", marker, size);
|
||||
#endif // GST_DISABLE_DEBUG
|
||||
|
||||
if (!gst_byte_reader_skip (reader, size - 2))
|
||||
return FALSE;
|
||||
|
||||
GST_LOG_OBJECT (parse, "unhandled marker %x skiping %u bytes", marker, size);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue