sound-juicer r2441 - in trunk: . libjuicer



Author: rburton
Date: Fri Feb 13 16:36:58 2009
New Revision: 2441
URL: http://svn.gnome.org/viewvc/sound-juicer?rev=2441&view=rev

Log:
2009-02-13  Ross Burton  <ross linux intel com>

	* libjuicer/sj-extractor.c:
	Handle comma separated genres.


Modified:
   trunk/ChangeLog
   trunk/libjuicer/sj-extractor.c

Modified: trunk/libjuicer/sj-extractor.c
==============================================================================
--- trunk/libjuicer/sj-extractor.c	(original)
+++ trunk/libjuicer/sj-extractor.c	Fri Feb 13 16:36:58 2009
@@ -556,10 +556,16 @@
       }
 
       if (track->album->genre != NULL && strcmp (track->album->genre, "") != 0) {
-        gst_tag_setter_add_tags (tagger,
-                                 GST_TAG_MERGE_APPEND,
-                                 GST_TAG_GENRE, track->album->genre,
-                                 NULL);
+        char **values, **l;
+        values = g_strsplit (track->album->genre, ",", 0);
+        for (l = values; *l; l++) {
+          g_strstrip (*l);
+          gst_tag_setter_add_tags (tagger,
+                                   GST_TAG_MERGE_APPEND,
+                                   GST_TAG_GENRE, *l,
+                                   NULL);
+        }
+        g_strfreev (values);
       }
       if (track->album->release_date) {
         gst_tag_setter_add_tags (tagger,



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