[tracker/rss-enclosures] NB#184505 - Video files without audio are listed as music clips.
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] NB#184505 - Video files without audio are listed as music clips.
- Date: Wed, 24 Nov 2010 01:30:23 +0000 (UTC)
commit a0934b5a5c45b8b64f5316e3ed8d9c637e2ba095
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]