tracker r2868 - trunk/src/tracker-extract
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2868 - trunk/src/tracker-extract
- Date: Fri, 30 Jan 2009 14:08:29 +0000 (UTC)
Author: pvanhoof
Date: Fri Jan 30 14:08:29 2009
New Revision: 2868
URL: http://svn.gnome.org/viewvc/tracker?rev=2868&view=rev
Log:
2009-01-30 Philip Van Hoof <philip codeminded be>
* src/tracker-extract/tracker-albumart.c: Bugfix when album art
was extracted from an embedded MP3, the copy to .mediaartlocal
was not requested in case of removable media.
Modified:
trunk/src/tracker-extract/tracker-albumart.c
Modified: trunk/src/tracker-extract/tracker-albumart.c
==============================================================================
--- trunk/src/tracker-extract/tracker-albumart.c (original)
+++ trunk/src/tracker-extract/tracker-albumart.c Fri Jan 30 14:08:29 2009
@@ -259,15 +259,10 @@
GList *removable_roots, *l;
gboolean on_removable_device = FALSE;
guint flen;
- gchar *asuri;
if (!filename)
return;
- asuri = g_strdup_printf ("file://", filename);
- tracker_thumbnailer_get_file_thumbnail (asuri, "image/jpeg");
- g_free (asuri);
-
if (!local_uri)
return;
@@ -552,6 +547,11 @@
G_TYPE_INVALID);
if (g_file_test (info->art_path, G_FILE_TEST_EXISTS)) {
+
+ gchar * asuri = g_strdup_printf ("file://", info->art_path);
+ tracker_thumbnailer_get_file_thumbnail (asuri, "image/jpeg");
+ g_free (asuri);
+
perhaps_copy_to_local (info->art_path, info->local_uri);
}
@@ -764,6 +764,12 @@
* only copies in case the media is located on a removable
* device */
+ if (g_file_test (art_path, G_FILE_TEST_EXISTS)) {
+ gchar *asuri = g_strdup_printf ("file://", art_path);
+ tracker_thumbnailer_get_file_thumbnail (asuri, "image/jpeg");
+ g_free (asuri);
+ }
+
if (!lcopied && g_file_test (art_path, G_FILE_TEST_EXISTS))
perhaps_copy_to_local (art_path, local_uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]