mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 00:28:21 +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);
|
count = gst_tag_list_get_tag_size (list, tag);
|
||||||
|
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
|
gchar *str;
|
||||||
|
|
||||||
gchar *str = g_strdup_value_contents (
|
if (gst_tag_get_type (tag) == G_TYPE_STRING) {
|
||||||
gst_tag_list_get_value_index (list, tag, i));
|
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) {
|
if (i == 0) {
|
||||||
g_print ("%15s: %s\n", gst_tag_get_nick (tag), str);
|
g_print ("%15s: %s\n", gst_tag_get_nick (tag), str);
|
||||||
|
|
Loading…
Reference in a new issue