tracker r2493 - in trunk: . src/tracker-extract
- From: mottela svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2493 - in trunk: . src/tracker-extract
- Date: Fri, 14 Nov 2008 04:03:19 +0000 (UTC)
Author: mottela
Date: Fri Nov 14 04:03:19 2008
New Revision: 2493
URL: http://svn.gnome.org/viewvc/tracker?rev=2493&view=rev
Log:
Added a default value for durations
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 Fri Nov 14 04:03:19 2008
@@ -912,6 +912,10 @@
if (!g_hash_table_lookup (metadata, "Audio:PlayCount")) {
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"));
+ }
} 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"));
@@ -924,6 +928,10 @@
if (!g_hash_table_lookup (metadata, "Video:PlayCount")) {
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"));
+ }
}
/* Also clean up */
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 Fri Nov 14 04:03:19 2008
@@ -1332,6 +1332,13 @@
g_strdup ("0"));
}
+ if (!g_hash_table_lookup (metadata, "Audio:Duration")) {
+ g_hash_table_insert (metadata,
+ g_strdup ("Audio:Duration"),
+ 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]