[rygel] media-export: Make batch size a constant



commit 3eb8fb50b676727d345740bf292b69c5be4cb554
Author: Jens Georg <mail jensge org>
Date:   Mon Aug 2 21:54:54 2010 +0300

    media-export: Make batch size a constant

 .../rygel-media-export-harvesting-task.vala        |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-harvesting-task.vala b/src/plugins/media-export/rygel-media-export-harvesting-task.vala
index ffe38aa..9d28dcb 100644
--- a/src/plugins/media-export/rygel-media-export-harvesting-task.vala
+++ b/src/plugins/media-export/rygel-media-export-harvesting-task.vala
@@ -31,6 +31,7 @@ public class Rygel.MediaExport.HarvestingTask : Rygel.StateMachine, GLib.Object
     private Regex file_filter;
     private string flag;
     private MediaContainer parent;
+    private const int BATCH_SIZE = 256;
 
     public Cancellable cancellable { get; set; }
 
@@ -210,7 +211,7 @@ public class Rygel.MediaExport.HarvestingTask : Rygel.StateMachine, GLib.Object
 
             GLib.List<FileInfo> list = null;
             do {
-                list = yield enumerator.next_files_async (256,
+                list = yield enumerator.next_files_async (this.BATCH_SIZE,
                                                           Priority.DEFAULT,
                                                           this.cancellable);
             } while (this.process_children (list));



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