[tracker/tracker-0.10] tracker-extract, png: Fix DLNA profiles



commit 41a81a1ea148de7f730bd42e3b98fef38930504e
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Oct 28 15:51:58 2011 +0200

    tracker-extract, png: Fix DLNA profiles
    
    Fixes NB#288530.

 src/tracker-extract/tracker-extract-png.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-png.c b/src/tracker-extract/tracker-extract-png.c
index 262fadf..bfb12d2 100644
--- a/src/tracker-extract/tracker-extract-png.c
+++ b/src/tracker-extract/tracker-extract-png.c
@@ -718,15 +718,7 @@ guess_dlna_profile (gint          depth,
 		*dlna_mimetype = NULL;
 	}
 
-	if (width == 120 && height == 120) {
-		profile = "PNG_LRG_ICO";
-	} else if (width == 48 && height == 48) {
-		profile = "PNG_SM_ICO";
-	} else if (width <= 160 && height <= 160) {
-		profile = "PNG_TN";
-	} else if (depth <= 32 && width <= 4096 && height <= 4096) {
-		profile = "PNG_LRG";
-	}
+	profile = "PNG_LRG";
 
 	if (profile) {
 		if (dlna_profile) {



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