mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 17:52:29 +00:00
playback-test: fix tag list leak
tags are being leaked while updating the streams in playback-test https://bugzilla.gnome.org/show_bug.cgi?id=752397
This commit is contained in:
parent
dec3fb3723
commit
8f81e04683
1 changed files with 3 additions and 0 deletions
|
@ -1180,6 +1180,7 @@ update_streams (PlaybackApp * app)
|
||||||
str = gst_tag_list_to_string (tags);
|
str = gst_tag_list_to_string (tags);
|
||||||
g_print ("video %d: %s\n", i, str);
|
g_print ("video %d: %s\n", i, str);
|
||||||
g_free (str);
|
g_free (str);
|
||||||
|
gst_tag_list_unref (tags);
|
||||||
}
|
}
|
||||||
/* find good name for the label */
|
/* find good name for the label */
|
||||||
name = g_strdup_printf ("video %d", i + 1);
|
name = g_strdup_printf ("video %d", i + 1);
|
||||||
|
@ -1199,6 +1200,7 @@ update_streams (PlaybackApp * app)
|
||||||
str = gst_tag_list_to_string (tags);
|
str = gst_tag_list_to_string (tags);
|
||||||
g_print ("audio %d: %s\n", i, str);
|
g_print ("audio %d: %s\n", i, str);
|
||||||
g_free (str);
|
g_free (str);
|
||||||
|
gst_tag_list_unref (tags);
|
||||||
}
|
}
|
||||||
/* find good name for the label */
|
/* find good name for the label */
|
||||||
name = g_strdup_printf ("audio %d", i + 1);
|
name = g_strdup_printf ("audio %d", i + 1);
|
||||||
|
@ -1228,6 +1230,7 @@ update_streams (PlaybackApp * app)
|
||||||
if (value && G_VALUE_HOLDS_STRING (value)) {
|
if (value && G_VALUE_HOLDS_STRING (value)) {
|
||||||
name = g_strdup_printf ("text %s", g_value_get_string (value));
|
name = g_strdup_printf ("text %s", g_value_get_string (value));
|
||||||
}
|
}
|
||||||
|
gst_tag_list_unref (tags);
|
||||||
}
|
}
|
||||||
/* find good name for the label if we didn't use a tag */
|
/* find good name for the label if we didn't use a tag */
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
|
|
Loading…
Reference in a new issue