[gupnp-dlna/wip/gst-1.0: 3/6] Fix crash in gupnp-dlna-info



commit 3d6f2a1f73c4d912b0270f2f6279512208014c00
Author: Riko Yamada <rik0yamada yahoo co jp>
Date:   Sat Jul 28 03:02:30 2012 +0900

    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

 tools/gupnp-dlna-info.c |    2 +-
 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 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]