[f-spot] Don't import video thumbnails.



commit 3c757226242bf6ba81aed7857d51682936699a0d
Author: Ruben Vermeersch <ruben savanne be>
Date:   Sat Jun 12 00:56:30 2010 +0200

    Don't import video thumbnails.

 src/Imaging/ImageFile.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/Imaging/ImageFile.cs b/src/Imaging/ImageFile.cs
index c770c00..6c51631 100644
--- a/src/Imaging/ImageFile.cs
+++ b/src/Imaging/ImageFile.cs
@@ -190,6 +190,11 @@ namespace FSpot {
 		static Type GetLoaderType (SafeUri uri)
 		{
 			string extension = uri.GetExtension ().ToLower ();
+			if (extension == ".thm") {
+				// Ignore video thumbnails.
+				return null;
+			}
+
 			Type t = (Type) name_table [extension];
 
 			if (t == null) {



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