[tracker] Fixes NB#171657, Device manufacturer and model XMP data not extracted mp4
- From: Ivan Frade <ifrade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Fixes NB#171657, Device manufacturer and model XMP data not extracted mp4
- Date: Fri, 4 Jun 2010 12:36:56 +0000 (UTC)
commit 067940cc6806395b416aa6d0f9119bd7c2d07170
Author: Ivan Frade <ivan frade nokia com>
Date: Fri Jun 4 15:33:13 2010 +0300
Fixes NB#171657, Device manufacturer and model XMP data not extracted mp4
src/tracker-extract/tracker-extract-gstreamer.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index ea84315..46cbd31 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -75,6 +75,11 @@ long long int llroundl(long double x);
#define GST_TAG_FRAMERATE "framerate"
#endif
+#ifndef GST_TAG_DEVICE_MODEL
+#define GST_TAG_DEVICE_MODEL "device-model"
+#endif
+
+
typedef enum {
EXTRACT_MIME_AUDIO,
EXTRACT_MIME_VIDEO,
@@ -743,6 +748,7 @@ extract_metadata (MetadataExtractor *extractor,
add_string_gst_tag (metadata, uri, "dc:coverage", extractor->tagcache, GST_TAG_LOCATION);
add_y_date_gst_tag (metadata, uri, "nie:contentCreated", extractor->tagcache, GST_TAG_DATE);
add_string_gst_tag (metadata, uri, "nie:comment", extractor->tagcache, GST_TAG_COMMENT);
+ add_string_gst_tag (metadata, uri, "nfo:device", extractor->tagcache, GST_TAG_DEVICE_MODEL);
if (extractor->is_content_encrypted) {
tracker_sparql_builder_predicate (metadata, "nfo:isContentEncrypted");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]