Fix treating up-to-date files as processed
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 31 Jul 2013 21:43:40 +0000 (18:43 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 31 Jul 2013 23:56:03 +0000 (20:56 -0300)
commit2e4bc93ec40ddcb8640465fc5cfb840d4b6574f6
treee5d95c45c4eaf8aa505471ad234cc2f17c132ab0
parenta8394cc221434b7ec50deba8176777b07d25a1a6
Fix treating up-to-date files as processed

If the file didn't change its mtime and size we shouldn't treat it
otherwise. Previously we would:

  1) Call the callback with reply==PROCESSED
  2) Increment the number of commits to the database. This could
     end with situations like: "BEGIN TRANSACTION; COMMIT;", without
     any operation if no file changed at all.
src/lib/lightmediascanner_process.c