tracker r2440 - in trunk: . src/tracker-extract
- From: mottela svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2440 - in trunk: . src/tracker-extract
- Date: Mon, 3 Nov 2008 19:12:56 +0000 (UTC)
Author: mottela
Date: Mon Nov 3 19:12:56 2008
New Revision: 2440
URL: http://svn.gnome.org/viewvc/tracker?rev=2440&view=rev
Log:
Added a default value for Audio:PlayCount for simplifying queries
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 Mon Nov 3 19:12:56 2008
@@ -894,6 +894,9 @@
if (!g_hash_table_lookup (metadata, "Audio:Genre")) {
g_hash_table_insert (metadata, g_strdup ("Audio:Genre"), g_strdup ("tracker:unknown"));
}
+ if (!g_hash_table_lookup (metadata, "Audio:PlayCount")) {
+ g_hash_table_insert (metadata, g_strdup ("Audio:PlayCount"), g_strdup ("0"));
+ }
} else if (type==EXTRACT_MIME_VIDEO) {
if (!g_hash_table_lookup (metadata, "Video:Title")) {
g_hash_table_insert (metadata, g_strdup ("Video:Title"), g_strdup ("tracker:unknown"));
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 Mon Nov 3 19:12:56 2008
@@ -1246,6 +1246,12 @@
g_strdup ("tracker:unknown"));
}
+ if (!g_hash_table_lookup (metadata, "Audio:PlayCount")) {
+ g_hash_table_insert (metadata,
+ g_strdup ("Audio:PlayCount"),
+ g_strdup ("0"));
+ }
+
#ifndef G_OS_WIN32
munmap (buffer, size);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]