[rygel] media-export: Update formatting and doc



commit 8d75be65d401ab917d001e8cdc67f5f9c36d0972
Author: Jens Georg <mail jensge org>
Date:   Fri Oct 16 20:45:04 2009 +0200

    media-export: Update formatting and doc

 .../media-export/rygel-media-export-harvester.vala |   22 ++++++++++++-------
 1 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-harvester.vala b/src/plugins/media-export/rygel-media-export-harvester.vala
index ba11997..2d16ba8 100644
--- a/src/plugins/media-export/rygel-media-export-harvester.vala
+++ b/src/plugins/media-export/rygel-media-export-harvester.vala
@@ -144,19 +144,19 @@ public class Rygel.MediaExportHarvester : GLib.Object {
     private async void enumerate_directory (File directory) {
         try {
             var enumerator = yield directory.enumerate_children_async (
-                    FILE_ATTRIBUTE_STANDARD_TYPE + "," +
-                    FILE_ATTRIBUTE_STANDARD_NAME + "," +
-                    FILE_ATTRIBUTE_TIME_MODIFIED,
-                    FileQueryInfoFlags.NONE,
-                    Priority.DEFAULT,
-                    null);
+                                          FILE_ATTRIBUTE_STANDARD_TYPE + "," +
+                                          FILE_ATTRIBUTE_STANDARD_NAME + "," +
+                                          FILE_ATTRIBUTE_TIME_MODIFIED,
+                                          FileQueryInfoFlags.NONE,
+                                          Priority.DEFAULT,
+                                          null);
 
 
             GLib.List<FileInfo> list = null;
             do {
                 list = yield enumerator.next_files_async (10,
-                        Priority.DEFAULT,
-                        null);
+                                                          Priority.DEFAULT,
+                                                          null);
             } while (process_children (list));
 
             yield enumerator.close_async (Priority.DEFAULT, null);
@@ -307,12 +307,18 @@ public class Rygel.MediaExportHarvester : GLib.Object {
         }
     }
 
+    /**
+     * If all files of a container were processed, notify the container
+     * about this and set the updating signal.
+     * Reschedule the iteration and extraction
+     */
     private void do_update () {
         if (this.files.get_length () == 0 &&
             this.containers.get_length () != 0) {
             this.containers.peek_head ().updated ();
             this.containers.pop_head ();
         }
+
         Idle.add(this.on_idle);
     }
 }



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