[tracker] Fixes totem AUDIO_BITRATE to use nfo:averageBitrate not nmm:averageBitrate
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Fixes totem AUDIO_BITRATE to use nfo:averageBitrate not nmm:averageBitrate
- Date: Wed, 17 Mar 2010 09:27:52 +0000 (UTC)
commit f5cbf70ff074939ea0787905b1f1fcfda386dd87
Author: Amit Aggarwal <amitcs06 gmail com>
Date: Wed Mar 17 09:15:11 2010 +0000
Fixes totem AUDIO_BITRATE to use nfo:averageBitrate not nmm:averageBitrate
src/tracker-extract/tracker-extract-totem.c | 33 ++++++++++++++-------------
1 files changed, 17 insertions(+), 16 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-totem.c b/src/tracker-extract/tracker-extract-totem.c
index dd3d2f8..499c280 100644
--- a/src/tracker-extract/tracker-extract-totem.c
+++ b/src/tracker-extract/tracker-extract-totem.c
@@ -27,27 +27,28 @@
#include <libtracker-common/tracker-utils.h>
#include <libtracker-extract/tracker-extract.h>
-
-static const gchar *tags[][2] = {
- { "TOTEM_INFO_VIDEO_HEIGHT", "nfo:height" },
- { "TOTEM_INFO_VIDEO_WIDTH", "nfo:width" },
- { "TOTEM_INFO_FPS", "nfo:frameRate" },
- { "TOTEM_INFO_VIDEO_CODEC", "nfo:codec" },
- { "TOTEM_INFO_VIDEO_BITRATE", "nfo:averageBitrate" },
- { "TOTEM_INFO_TITLE", "nie:title" },
- { "TOTEM_INFO_ARTIST", "nco:creator" },
- { "TOTEM_INFO_ALBUM", "nmm:musicAlbum" },
- { "TOTEM_INFO_AUDIO_BITRATE", "nmm:averageBitrate" },
- { "TOTEM_INFO_AUDIO_SAMPLE_RATE", "nfo:sampleRate" },
- { "TOTEM_INFO_AUDIO_CODEC", "nfo:codec" },
- { "TOTEM_INFO_AUDIO_CHANNELS", "nfo:channels" },
- { NULL, NULL }
-};
+#include <libtracker-client/tracker.h>
static void extract_totem (const gchar *uri,
TrackerSparqlBuilder *preupdate,
TrackerSparqlBuilder *metadata);
+static const gchar *tags[][2] = {
+ { "TOTEM_INFO_VIDEO_HEIGHT", "nfo:height" },
+ { "TOTEM_INFO_VIDEO_WIDTH", "nfo:width" },
+ { "TOTEM_INFO_FPS", "nfo:frameRate" },
+ { "TOTEM_INFO_VIDEO_CODEC", "nfo:codec" },
+ { "TOTEM_INFO_VIDEO_BITRATE", "nfo:averageBitrate" },
+ { "TOTEM_INFO_TITLE", "nie:title" },
+ { "TOTEM_INFO_ARTIST", "nco:creator" },
+ { "TOTEM_INFO_ALBUM", "nmm:musicAlbum" },
+ { "TOTEM_INFO_AUDIO_BITRATE", "nfo:averageBitrate" },
+ { "TOTEM_INFO_AUDIO_SAMPLE_RATE", "nfo:sampleRate" },
+ { "TOTEM_INFO_AUDIO_CODEC", "nfo:codec" },
+ { "TOTEM_INFO_AUDIO_CHANNELS", "nfo:channels" },
+ { NULL, NULL }
+};
+
static TrackerExtractData data[] = {
{ "audio/*", extract_totem },
{ "video/*", extract_totem },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]