icydemux: Add 'StreamUrl' metadata as GST_TAG_HOMEPAGE tag
authorAndoni Morales Alastruey <amorales@flumotion.com>
Wed, 27 Oct 2010 17:15:20 +0000 (19:15 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 2 Dec 2010 18:18:03 +0000 (19:18 +0100)
gst/icydemux/gsticydemux.c

index e3883a9..5965500 100644 (file)
@@ -352,13 +352,11 @@ gst_icydemux_parse_and_send_tags (GstICYDemux * icydemux)
     } else if (!g_ascii_strncasecmp (strings[i], "StreamUrl=", 10)) {
       char *url = gst_icydemux_unicodify (strings[i] + 11);
 
-      if (url) {
-        /* 
-           gst_tag_list_add (tags, GST_TAG_MERGE_REPLACE, GST_TAG_URL, 
-           url, NULL); 
-           found_tag = TRUE;
-         */
+      if (url && *url) {
+        gst_tag_list_add (tags, GST_TAG_MERGE_REPLACE, GST_TAG_HOMEPAGE,
+            url, NULL);
         g_free (url);
+        found_tag = TRUE;
       }
     }
   }