[tracker/tracker-0.8] NB#184505 - Video files without audio are listed as music clips.
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] NB#184505 - Video files without audio are listed as music clips.
- Date: Thu, 2 Sep 2010 12:11:10 +0000 (UTC)
commit b230efcbd85f8db821c8d6a13f5ae4d749d3c4b2
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 f20703c..e8147d3 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -582,7 +582,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]