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



Author: mr
Date: Wed Nov 19 15:28:59 2008
New Revision: 2528
URL: http://svn.gnome.org/viewvc/tracker?rev=2528&view=rev

Log:
	* src/tracker-extract/tracker-extract-gstreamer.c:
	* src/tracker-extract/tracker-extract-mp3.c: Don't use
	"tracker:unknown" when we don't know a metadata value, return "".


Modified:
   trunk/ChangeLog
   trunk/src/tracker-extract/tracker-extract-gstreamer.c
   trunk/src/tracker-extract/tracker-extract-mp3.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	Wed Nov 19 15:28:59 2008
@@ -910,23 +910,33 @@
 		}
 		
 		if (!g_hash_table_lookup (metadata, "Audio:Album")) {
-			g_hash_table_insert (metadata, g_strdup ("Audio:Album"), g_strdup ("tracker:unknown"));
+			g_hash_table_insert (metadata, 
+					     g_strdup ("Audio:Album"), 
+					     g_strdup (""));
 		}
 		
 		if (!g_hash_table_lookup (metadata, "Audio:Artist")) {
-			g_hash_table_insert (metadata, g_strdup ("Audio:Artist"), g_strdup ("tracker:unknown"));
+			g_hash_table_insert (metadata, 
+					     g_strdup ("Audio:Artist"), 
+					     g_strdup (""));
 		}
 		
 		if (!g_hash_table_lookup (metadata, "Audio:Genre")) {
-			g_hash_table_insert (metadata, g_strdup ("Audio:Genre"), g_strdup ("tracker:unknown"));
+			g_hash_table_insert (metadata, 
+					     g_strdup ("Audio:Genre"), 
+					     g_strdup (""));
 		}
 
 		if (!g_hash_table_lookup (metadata, "Audio:PlayCount")) {
-			g_hash_table_insert (metadata, g_strdup ("Audio:PlayCount"), g_strdup ("0"));
+			g_hash_table_insert (metadata, 
+					     g_strdup ("Audio:PlayCount"), 
+					     g_strdup ("0"));
 		}
 
 		if (!g_hash_table_lookup (metadata, "Audio:Duration")) {
-			g_hash_table_insert (metadata, g_strdup ("Audio:Duration"), g_strdup ("0"));
+			g_hash_table_insert (metadata, 
+					     g_strdup ("Audio:Duration"), 
+					     g_strdup ("0"));
 		}
 	} else if (type==EXTRACT_MIME_VIDEO) {
 		if (!g_hash_table_lookup (metadata, "Video:Title")) {
@@ -946,15 +956,21 @@
 		}
 		
 		if (!g_hash_table_lookup (metadata, "Video:Author")) {
-			g_hash_table_insert (metadata, g_strdup ("Video:Author"), g_strdup ("tracker:unknown"));
+			g_hash_table_insert (metadata, 
+					     g_strdup ("Video:Author"),
+					     g_strdup (""));
 		}
 
 		if (!g_hash_table_lookup (metadata, "Video:PlayCount")) {
-			g_hash_table_insert (metadata, g_strdup ("Video:PlayCount"), g_strdup ("0"));
+			g_hash_table_insert (metadata, 
+					     g_strdup ("Video:PlayCount"), 
+					     g_strdup ("0"));
 		}
 
 		if (!g_hash_table_lookup (metadata, "Video:Duration")) {
-			g_hash_table_insert (metadata, g_strdup ("Video:Duration"), g_strdup ("0"));
+			g_hash_table_insert (metadata, 
+					     g_strdup ("Video:Duration"), 
+					     g_strdup ("0"));
 		}
 	}
 

Modified: trunk/src/tracker-extract/tracker-extract-mp3.c
==============================================================================
--- trunk/src/tracker-extract/tracker-extract-mp3.c	(original)
+++ trunk/src/tracker-extract/tracker-extract-mp3.c	Wed Nov 19 15:28:59 2008
@@ -1321,19 +1321,19 @@
 	if (!g_hash_table_lookup (metadata, "Audio:Album")) {
 		g_hash_table_insert (metadata,
 				     g_strdup ("Audio:Album"),
-				     g_strdup ("tracker:unknown"));
+				     g_strdup (""));
 	}
 
 	if (!g_hash_table_lookup (metadata, "Audio:Artist")) {
 		g_hash_table_insert (metadata,
 				     g_strdup ("Audio:Artist"),
-				     g_strdup ("tracker:unknown"));
+				     g_strdup (""));
 	}
 
 	if (!g_hash_table_lookup (metadata, "Audio:Genre")) {
 		g_hash_table_insert (metadata,
 				     g_strdup ("Audio:Genre"),
-				     g_strdup ("tracker:unknown"));
+				     g_strdup (""));
 	}
 
 	if (!g_hash_table_lookup (metadata, "Audio:PlayCount")) {



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