process: properly report status for dual-process mode.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Wed, 4 Dec 2013 18:59:13 +0000 (16:59 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Wed, 4 Dec 2013 18:59:13 +0000 (16:59 -0200)
we should report the status we got in "reply", such as processed,
uptodate, skipped... not the return of _master_recv_reply() that is 1
during timeout or 0 on success (everything was being reported as 0
(LMS_PROGRESS_STATUS_UP_TO_DATE).

src/lib/lightmediascanner_process.c

index 92aa007..2302303 100644 (file)
@@ -844,7 +844,7 @@ _process_file(struct cinfo *info, int base, char *path, const char *name)
                 info, path, new_len, LMS_PROGRESS_STATUS_ERROR_PARSE);
             return reply;
         }
-        _report_progress(info, path, new_len, r);
+        _report_progress(info, path, new_len, reply);
         return reply;
     }
 }