[tracker] NB#184505 - Video files without audio are listed as music clips.



commit 5cff5bf5b3a2b7adcf832ef925f5fabf65725305
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Aug 26 16:58:34 2010 +0200

    NB#184505 - Video files without audio are listed as music clips.
    
    Do not extract the album tag if the file is not an audio file, the ontology
    only applies to audio albums anyway.

 src/tracker-extract/tracker-extract-gstreamer.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 614e0e1..b04c2c6 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -592,7 +592,11 @@ extract_metadata (MetadataExtractor      *extractor,
 
 		/* Audio */
 		s = NULL;
-		gst_tag_list_get_string (extractor->tagcache, GST_TAG_ALBUM, &s);
+
+		if (extractor->mime == EXTRACT_MIME_AUDIO) {
+			gst_tag_list_get_string (extractor->tagcache, GST_TAG_ALBUM, &s);
+		}
+
 		if (s) {
 			gboolean has_it;
 			guint count;



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