[tracker-miners/wip/carlosg/test] tracker-extract: Always query next items



commit bd1b555a9b599688de86a57dad227357b83d3f43
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Oct 24 20:32:50 2020 +0200

    tracker-extract: Always query next items
    
    Let n-items for informational purposes, and always try to fetch
    a next item to extract. If there's none, we'll receive the appropriate
    error and stop.

 src/tracker-extract/tracker-extract-decorator.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-decorator.c b/src/tracker-extract/tracker-extract-decorator.c
index 2a856acf4..9e6c1816b 100644
--- a/src/tracker-extract/tracker-extract-decorator.c
+++ b/src/tracker-extract/tracker-extract-decorator.c
@@ -310,7 +310,6 @@ static void
 decorator_get_next_file (TrackerDecorator *decorator)
 {
        TrackerExtractDecoratorPrivate *priv;
-       guint available_items;
 
        priv = tracker_extract_decorator_get_instance_private (TRACKER_EXTRACT_DECORATOR (decorator));
 
@@ -318,11 +317,8 @@ decorator_get_next_file (TrackerDecorator *decorator)
            tracker_miner_is_paused (TRACKER_MINER (decorator)))
                return;
 
-       available_items = tracker_decorator_get_n_items (decorator);
-       while (priv->n_extracting_files < MAX_EXTRACTING_FILES &&
-              available_items > 0) {
+       while (priv->n_extracting_files < MAX_EXTRACTING_FILES) {
                priv->n_extracting_files++;
-               available_items--;
                tracker_decorator_next (decorator, NULL,
                                        (GAsyncReadyCallback) decorator_next_item_cb,
                                        NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]