tracker r2882 - in trunk: . data/services src/tracker-extract
- From: mottela svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2882 - in trunk: . data/services src/tracker-extract
- Date: Thu, 5 Feb 2009 12:37:15 +0000 (UTC)
Author: mottela
Date: Thu Feb 5 12:37:15 2009
New Revision: 2882
URL: http://svn.gnome.org/viewvc/tracker?rev=2882&view=rev
Log:
Extract the Video:Source tag
Modified:
trunk/ChangeLog
trunk/data/services/video.metadata
trunk/src/tracker-extract/tracker-extract-gstreamer.c
Modified: trunk/data/services/video.metadata
==============================================================================
--- trunk/data/services/video.metadata (original)
+++ trunk/data/services/video.metadata Thu Feb 5 12:37:15 2009
@@ -71,6 +71,5 @@
[Video:Source]
DisplayName=Source of the video
Description=Description of the physical device that took the video.
-DataType=keyword
-Embedded=false
+DataType=string
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 Thu Feb 5 12:37:15 2009
@@ -74,6 +74,10 @@
*/
#define INCLUDE_FLUENDO_TAGS
+#ifndef GST_TAG_CLASSIFICATION
+#define GST_TAG_CLASSIFICATION "classification"
+#endif
+
typedef enum {
EXTRACT_MIME_UNDEFINED,
EXTRACT_MIME_AUDIO,
@@ -669,6 +673,7 @@
/* FIXME: is it a good idea to use GST_TAG_ARTIST as author?! */
add_string_gst_tag (metadata, "Video:Author", extractor->tagcache, GST_TAG_ARTIST);
add_string_gst_tag (metadata, "File:Copyright", extractor->tagcache, GST_TAG_COPYRIGHT);
+ add_string_gst_tag (metadata, "Video:Source", extractor->tagcache, GST_TAG_CLASSIFICATION);
if (duration >= 0) {
add_int64_info (metadata, g_strdup ("Video:Duration"), duration);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]