mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
gst-discoverer: print all entries for a certain tag
If there are multiple entries for a tag, print all of them individually.
This commit is contained in:
parent
d9adf02a5a
commit
400511b71e
1 changed files with 6 additions and 3 deletions
|
@ -403,13 +403,16 @@ print_properties (GstDiscovererInfo * info, gint tab)
|
|||
for (i = 0; i < num_tags; ++i) {
|
||||
const GValue *val;
|
||||
const gchar *tag_name;
|
||||
guint num_entries, j;
|
||||
|
||||
tag_name = gst_tag_list_nth_tag_name (tags, i);
|
||||
/* FIXME: print all entries for a tag if there are multiple ones */
|
||||
val = gst_tag_list_get_value_index (tags, tag_name, 0);
|
||||
num_entries = gst_tag_list_get_tag_size (tags, tag_name);
|
||||
for (j = 0; j < num_entries; ++j) {
|
||||
val = gst_tag_list_get_value_index (tags, tag_name, j);
|
||||
print_tag (tag_name, val, tab + 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (show_toc && (toc = gst_discoverer_info_get_toc (info))) {
|
||||
g_print ("%*sTOC: \n", tab + 1, " ");
|
||||
g_list_foreach (toc->entries, print_toc_entry, GUINT_TO_POINTER (tab + 5));
|
||||
|
|
Loading…
Reference in a new issue