[tracker] Add mp4 and 3gpp video files to the writeback xmp module.



commit 5c164ac57fcb36cda8cd96fd446997fe865c5570
Author: Mikael Ottela <mikael ottela ixonos com>
Date:   Sun May 9 02:19:22 2010 +0300

    Add mp4 and 3gpp video files to the writeback xmp module.

 src/tracker-writeback/tracker-writeback-xmp.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-writeback/tracker-writeback-xmp.c b/src/tracker-writeback/tracker-writeback-xmp.c
index 2d6236a..c67552c 100644
--- a/src/tracker-writeback/tracker-writeback-xmp.c
+++ b/src/tracker-writeback/tracker-writeback-xmp.c
@@ -87,6 +87,8 @@ writeback_xmp_content_types (TrackerWritebackFile *wbf)
 		"sketch/png",  /* .sketch.png files on Maemo*/
 		"image/jpeg",  /* .jpg & .jpeg files */
 		"image/tiff",  /* .tiff & .tif files */
+		"video/mp4",   /* .mp4 files */
+		"video/3gpp",  /* .3gpp files */
 		NULL
 	};
 
@@ -369,7 +371,7 @@ writeback_xmp_update_file_metadata (TrackerWritebackFile *wbf,
 		    g_strcmp0 (row[2], TRACKER_MLO_PREFIX "city") == 0     ||
 		    g_strcmp0 (row[2], TRACKER_MLO_PREFIX "country") == 0  ||
 		    g_strcmp0 (row[2], TRACKER_MLO_PREFIX "state") == 0    ||
-		    g_strcmp0 (row[2], TRACKER_MLO_PREFIX "address") == 0) 
+		    g_strcmp0 (row[2], TRACKER_MLO_PREFIX "address") == 0)
 		{
 			GPtrArray *array;
 			GError *error = NULL;
@@ -442,7 +444,7 @@ writeback_xmp_update_file_metadata (TrackerWritebackFile *wbf,
 		}
 
 		/* TODO: When a photo contains a known face
-		 * 
+		 *
 		 * if (g_strcmp0 (row[2], PHOTO_HAS "contact") == 0) {
 		  xmp_delete_property (xmp, FACE, "contact");
 		  Fetch full name of the contact?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]