Commit 5dc8a13c authored by Mikael Ottela's avatar Mikael Ottela

Fallback for mp3 extraction if can't access with O_NOATIME

svn path=/trunk/; revision=2866
parent 694096bd
2009-01-29 Mikael Ottela <mikael.ottela@ixonos.com>
* src/tracker-extract/tracker-extract-mp3.c: Don't fail if we
can't access a file with O_NOATIME, try without it.
Fixes NB #99281
2009-01-29 Mikael Ottela <mikael.ottela@ixonos.com>
* src/tracker-extract/tracker-extract-gstreamer.c: Added a default
......
......@@ -1366,7 +1366,11 @@ extract_mp3 (const gchar *filename,
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment