summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiko Yamada <rik0yamada@yahoo.co.jp>2012-07-28 03:02:30 +0900
committerJens Georg <mail@jensge.org>2012-11-03 14:49:02 +0100
commit3d6f2a1f73c4d912b0270f2f6279512208014c00 (patch)
treec661ee2e3bfa5e34c4466a3daf4883b937601ac1
parent9205531ea019da8b8670124e535918aa5fdd5235 (diff)
downloadgupnp-dlna-3d6f2a1f73c4d912b0270f2f6279512208014c00.tar.gz
Fix crash in gupnp-dlna-info
GstTagList is now an opaque mini object instead of being typedefed to a GstStructure. Therefore cast from GstTagList to GstStructure will cause crashes. Simply using gst_tag_list_to_string () will be fine. https://bugzilla.gnome.org/show_bug.cgi?id=680484
-rw-r--r--tools/gupnp-dlna-info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gupnp-dlna-info.c b/tools/gupnp-dlna-info.c
index 514dad0..b1f63c4 100644
--- a/tools/gupnp-dlna-info.c
+++ b/tools/gupnp-dlna-info.c
@@ -113,7 +113,7 @@ gst_stream_audio_information_to_string (GstDiscovererStreamInfo * info,
my_g_string_append_printf (s, "Tags:\n");
taglist = gst_discoverer_stream_info_get_tags (info);
if (taglist) {
- tmp = gst_structure_to_string ((GstStructure *) taglist);
+ tmp = gst_tag_list_to_string (taglist);
my_g_string_append_printf (s, " %s\n", tmp);
g_free (tmp);
} else {