tracker r2890 - in trunk: . src/tracker-extract



Author: mottela
Date: Fri Feb  6 15:29:24 2009
New Revision: 2890
URL: http://svn.gnome.org/viewvc/tracker?rev=2890&view=rev

Log:
Images should not have Video:Framerate property

Modified:
   trunk/ChangeLog
   trunk/src/tracker-extract/tracker-extract-gstreamer.c

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	Fri Feb  6 15:29:24 2009
@@ -617,12 +617,6 @@
 		}
 	}
 
-	if (extractor->video_fps_n >= 0 && extractor->video_fps_d >= 0) {
-		add_uint_info (metadata,
-			       g_strdup ("Video:FrameRate"),
-			       ((extractor->video_fps_n + extractor->video_fps_d / 2) / extractor->video_fps_d));
-	}
-
 	if (extractor->tagcache) {
 		gint64 duration;
 
@@ -675,6 +669,13 @@
 			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 (extractor->video_fps_n >= 0 && extractor->video_fps_d >= 0) {
+				add_uint_info (metadata,
+					       g_strdup ("Video:FrameRate"),
+					       ((extractor->video_fps_n + extractor->video_fps_d / 2) / 
+						extractor->video_fps_d));
+			}
+			
 			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]