mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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,11 +403,14 @@ print_properties (GstDiscovererInfo * info, gint tab)
|
||||||
for (i = 0; i < num_tags; ++i) {
|
for (i = 0; i < num_tags; ++i) {
|
||||||
const GValue *val;
|
const GValue *val;
|
||||||
const gchar *tag_name;
|
const gchar *tag_name;
|
||||||
|
guint num_entries, j;
|
||||||
|
|
||||||
tag_name = gst_tag_list_nth_tag_name (tags, i);
|
tag_name = gst_tag_list_nth_tag_name (tags, i);
|
||||||
/* FIXME: print all entries for a tag if there are multiple ones */
|
num_entries = gst_tag_list_get_tag_size (tags, tag_name);
|
||||||
val = gst_tag_list_get_value_index (tags, tag_name, 0);
|
for (j = 0; j < num_entries; ++j) {
|
||||||
print_tag (tag_name, val, tab + 5);
|
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))) {
|
if (show_toc && (toc = gst_discoverer_info_get_toc (info))) {
|
||||||
|
|
Loading…
Reference in a new issue