mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +00:00
don't use strdup_value_contents for strings
Original commit message from CVS: don't use strdup_value_contents for strings
This commit is contained in:
parent
17b132c9b3
commit
0ee999abcf
1 changed files with 7 additions and 2 deletions
|
@ -229,9 +229,14 @@ print_tag (const GstTagList *list, const gchar *tag, gpointer unused)
|
|||
count = gst_tag_list_get_tag_size (list, tag);
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
gchar *str;
|
||||
|
||||
gchar *str = g_strdup_value_contents (
|
||||
gst_tag_list_get_value_index (list, tag, i));
|
||||
if (gst_tag_get_type (tag) == G_TYPE_STRING) {
|
||||
g_assert (gst_tag_list_get_string_index (list, tag, i, &str));
|
||||
} else {
|
||||
str = g_strdup_value_contents (
|
||||
gst_tag_list_get_value_index (list, tag, i));
|
||||
}
|
||||
|
||||
if (i == 0) {
|
||||
g_print ("%15s: %s\n", gst_tag_get_nick (tag), str);
|
||||
|
|
Loading…
Reference in a new issue