[rygel] media-export: Some code cleanup
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
 
- To: svn-commits-list gnome org
 
- Cc: 
 
- Subject: [rygel] media-export: Some code cleanup
 
- Date: Wed, 23 Sep 2009 11:19:45 +0000 (UTC)
 
commit 08968a2e2341d4fbb40e239126e04ead52f8b00f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Sep 23 14:14:41 2009 +0300
    media-export: Some code cleanup
 .../media-export/rygel-media-export-harvester.vala |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-harvester.vala b/src/plugins/media-export/rygel-media-export-harvester.vala
index e69e2c8..0362e92 100644
--- a/src/plugins/media-export/rygel-media-export-harvester.vala
+++ b/src/plugins/media-export/rygel-media-export-harvester.vala
@@ -98,7 +98,7 @@ public class Rygel.MediaExportHarvester : GLib.Object {
                 this.media_db.remove_by_id (child);
             }
 
-            do_update ();
+            this.do_update ();
         } catch (MediaDBError err) {
             warning("Failed to get children of container %s: %s",
                     container.id,
@@ -240,7 +240,7 @@ public class Rygel.MediaExportHarvester : GLib.Object {
             warning ("Failed to harvest file %s: %s",
                      file.get_uri (),
                      err.message);
-            harvested (file);
+            this.harvested (file);
         }
     }
 
@@ -301,7 +301,7 @@ public class Rygel.MediaExportHarvester : GLib.Object {
             }
 
             this.files.pop_head ();
-            do_update ();
+            this.do_update ();
             Idle.add(this.on_idle);
         }
     }
@@ -315,17 +315,16 @@ public class Rygel.MediaExportHarvester : GLib.Object {
         }
         if (file == entry.file) {
             this.files.pop_head ();
-            do_update ();
+            this.do_update ();
             Idle.add(this.on_idle);
         }
     }
 
     private void do_update () {
         if (this.files.get_length () == 0 &&
-                this.containers.get_length () != 0) {
+            this.containers.get_length () != 0) {
             this.containers.peek_head ().updated ();
             this.containers.pop_head ();
         }
-
     }
 }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]