[tracker/writeback: 22/23] Restrict supported filetypes for the XMP writeback module
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/writeback: 22/23] Restrict supported filetypes for the XMP writeback module
- Date: Sun, 22 Nov 2009 12:41:22 +0000 (UTC)
commit aa01ba0951ff94bb71d6cbb5e47aef3d970ec487
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Nov 19 14:25:41 2009 +0100
Restrict supported filetypes for the XMP writeback module
src/tracker-writeback/tracker-writeback-xmp.c | 24 +++++++++++-------------
1 files changed, 11 insertions(+), 13 deletions(-)
---
diff --git a/src/tracker-writeback/tracker-writeback-xmp.c b/src/tracker-writeback/tracker-writeback-xmp.c
index ca2726b..b2701d7 100644
--- a/src/tracker-writeback/tracker-writeback-xmp.c
+++ b/src/tracker-writeback/tracker-writeback-xmp.c
@@ -105,21 +105,19 @@ tracker_writeback_xmp_update_file_metadata (TrackerWritebackFile *writeback_file
mime_type = g_file_info_get_content_type (file_info);
- /* Tested filetypes */
- if (g_strcmp0 (mime_type, "application/rdf+xml") != 0 && /* .xmp files */
- g_strcmp0 (mime_type, "application/pdf") != 0 && /* .pdf files */
- g_strcmp0 (mime_type, "image/png") != 0 && /* .png files */
+ if (g_strcmp0 (mime_type, "image/png") != 0 && /* .png files */
g_strcmp0 (mime_type, "sketch/png") != 0 && /* .sketch.png files on Maemo*/
g_strcmp0 (mime_type, "image/jpeg") != 0 && /* .jpg & .jpeg files */
- g_strcmp0 (mime_type, "image/gif") != 0 && /* .jpg & .jpeg files */
- g_strcmp0 (mime_type, "image/tiff") != 0 && /* .tiff & .tif files */
-
- /* Less certain filetypes */
- g_strcmp0 (mime_type, "application/postscript") != 0 && /* .ps files */
- g_strcmp0 (mime_type, "application/x-shockwave-flash") != 0 && /* .swf files */
- g_strcmp0 (mime_type, "video/quicktime") != 0 && /* .mov files */
- g_strcmp0 (mime_type, "video/mpeg") != 0 && /* .mpeg & .mpg files */
- g_strcmp0 (mime_type, "audio/mpeg") != 0 ) { /* .mp3, etc files */
+ g_strcmp0 (mime_type, "image/tiff") != 0 ) { /* .tiff & .tif files */
+
+ /* g_strcmp0 (mime_type, "image/gif") != 0 && * .gif files *
+ g_strcmp0 (mime_type, "application/pdf") != 0 && * .pdf files *
+ g_strcmp0 (mime_type, "application/rdf+xml") != 0 && * .xmp files *
+ g_strcmp0 (mime_type, "application/postscript") != 0 && * .ps files *
+ g_strcmp0 (mime_type, "application/x-shockwave-flash") != 0 && * .swf files *
+ g_strcmp0 (mime_type, "video/quicktime") != 0 && * .mov files *
+ g_strcmp0 (mime_type, "video/mpeg") != 0 && * .mpeg & .mpg files *
+ g_strcmp0 (mime_type, "audio/mpeg") != 0 ) { * .mp3, etc files */
g_object_unref (file_info);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]