tracker r2866 - in trunk: . src/tracker-extract
- From: mottela svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2866 - in trunk: . src/tracker-extract
- Date: Fri, 30 Jan 2009 00:40:59 +0000 (UTC)
Author: mottela
Date: Fri Jan 30 00:40:59 2009
New Revision: 2866
URL: http://svn.gnome.org/viewvc/tracker?rev=2866&view=rev
Log:
Fallback for mp3 extraction if can't access with O_NOATIME
Modified:
trunk/ChangeLog
trunk/src/tracker-extract/tracker-extract-mp3.c
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 Jan 30 00:40:59 2009
@@ -1366,7 +1366,11 @@
filedata.albumartsize = 0;
#if defined(__linux__)
+ /* O_NOATIME fails for files we do not own (even if we can read) */
file = g_open (filename, (O_RDONLY | O_NOATIME), 0);
+ if (file == -1) {
+ file = g_open (filename, O_RDONLY, 0);
+ }
#else
file = g_open (filename, O_RDONLY, 0);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]