tracker r2446 - in trunk: . src/tracker-extract
- From: mottela svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2446 - in trunk: . src/tracker-extract
- Date: Tue, 4 Nov 2008 14:22:37 +0000 (UTC)
Author: mottela
Date: Tue Nov 4 14:22:37 2008
New Revision: 2446
URL: http://svn.gnome.org/viewvc/tracker?rev=2446&view=rev
Log:
Support for non-standard tags used in some fluendo gstreamer plugins
Modified:
trunk/ChangeLog
trunk/src/tracker-extract/tracker-extract-gstreamer.c
Modified: trunk/src/tracker-extract/tracker-extract-gstreamer.c
==============================================================================
--- trunk/src/tracker-extract/tracker-extract-gstreamer.c (original)
+++ trunk/src/tracker-extract/tracker-extract-gstreamer.c Tue Nov 4 14:22:37 2008
@@ -65,6 +65,13 @@
#include "tracker-extract.h"
#include "tracker-albumart.h"
+/*
+ * Some fluendo plugins use non-standard tag names currently which cause
+ * them to be ignored. Including the following define these tags are
+ * checked separately. FIXME Remove when no longer needed.
+ */
+#define INCLUDE_FLUENDO_TAGS
+
typedef enum {
EXTRACT_MIME_UNDEFINED=0,
EXTRACT_MIME_AUDIO,
@@ -627,6 +634,13 @@
add_string_gst_tag (metadata, "Audio:Genre", extractor->tagcache, GST_TAG_GENRE);
add_string_gst_tag (metadata, "Audio:Codec", extractor->tagcache, GST_TAG_AUDIO_CODEC);
+#ifdef INCLUDE_FLUENDO_TAGS /* FIXME Should be removed eventually. See the top */
+ add_string_gst_tag (metadata, "Audio:Album", extractor->tagcache, "WM/AlbumTitle");
+ add_string_gst_tag (metadata, "Audio:TrackNo", extractor->tagcache, "WM/TrackNumber");
+ add_string_gst_tag (metadata, "Audio:ReleaseDate", extractor->tagcache, "WM/Year");
+ add_string_gst_tag (metadata, "Audio:Genre", extractor->tagcache, "WM/Genre");
+#endif
+
/* Video */
add_string_gst_tag (metadata, "Video:Codec", extractor->tagcache, GST_TAG_VIDEO_CODEC);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]