mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
Add more debug output to metadatamux
This commit is contained in:
parent
6303b0e80d
commit
1b246c72d1
1 changed files with 9 additions and 0 deletions
|
@ -418,9 +418,12 @@ gst_metadata_mux_create_chunks_from_tags (GstBaseMetadata * base)
|
||||||
guint8 *buf = NULL;
|
guint8 *buf = NULL;
|
||||||
guint32 size = 0;
|
guint32 size = 0;
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (base, "Creating chunks from tags..");
|
||||||
|
|
||||||
if (taglist) {
|
if (taglist) {
|
||||||
|
|
||||||
if (gst_base_metadata_get_option_flag (base) & META_OPT_EXIF) {
|
if (gst_base_metadata_get_option_flag (base) & META_OPT_EXIF) {
|
||||||
|
GST_DEBUG_OBJECT (base, "Using EXIF");
|
||||||
metadatamux_exif_create_chunk_from_tag_list (&buf, &size, taglist,
|
metadatamux_exif_create_chunk_from_tag_list (&buf, &size, taglist,
|
||||||
&filter->exif_options);
|
&filter->exif_options);
|
||||||
gst_base_metadata_update_inject_segment_with_new_data (base, &buf, &size,
|
gst_base_metadata_update_inject_segment_with_new_data (base, &buf, &size,
|
||||||
|
@ -428,12 +431,14 @@ gst_metadata_mux_create_chunks_from_tags (GstBaseMetadata * base)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gst_base_metadata_get_option_flag (base) & META_OPT_IPTC) {
|
if (gst_base_metadata_get_option_flag (base) & META_OPT_IPTC) {
|
||||||
|
GST_DEBUG_OBJECT (base, "Using IPTC");
|
||||||
metadatamux_iptc_create_chunk_from_tag_list (&buf, &size, taglist);
|
metadatamux_iptc_create_chunk_from_tag_list (&buf, &size, taglist);
|
||||||
gst_base_metadata_update_inject_segment_with_new_data (base, &buf, &size,
|
gst_base_metadata_update_inject_segment_with_new_data (base, &buf, &size,
|
||||||
MD_CHUNK_IPTC);
|
MD_CHUNK_IPTC);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gst_base_metadata_get_option_flag (base) & META_OPT_XMP) {
|
if (gst_base_metadata_get_option_flag (base) & META_OPT_XMP) {
|
||||||
|
GST_DEBUG_OBJECT (base, "Using XMP");
|
||||||
metadatamux_xmp_create_chunk_from_tag_list (&buf, &size, taglist);
|
metadatamux_xmp_create_chunk_from_tag_list (&buf, &size, taglist);
|
||||||
gst_base_metadata_update_inject_segment_with_new_data (base, &buf, &size,
|
gst_base_metadata_update_inject_segment_with_new_data (base, &buf, &size,
|
||||||
MD_CHUNK_XMP);
|
MD_CHUNK_XMP);
|
||||||
|
@ -441,6 +446,10 @@ gst_metadata_mux_create_chunks_from_tags (GstBaseMetadata * base)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
GST_DEBUG_OBJECT (base, "Empty taglist");
|
||||||
|
}
|
||||||
|
|
||||||
if (buf) {
|
if (buf) {
|
||||||
g_free (buf);
|
g_free (buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue