[rygel] media-export: Remove duplicate code
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Remove duplicate code
- Date: Sat, 7 Aug 2010 15:44:36 +0000 (UTC)
commit 83eef2d4af361d9ff5ee747cda9e420b22d8038c
Author: Jens Georg <mail jensge org>
Date: Sun Jul 25 14:35:00 2010 +0300
media-export: Remove duplicate code
.../rygel-media-export-db-container.vala | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-db-container.vala b/src/plugins/media-export/rygel-media-export-db-container.vala
index 0088fad..6161a2d 100644
--- a/src/plugins/media-export/rygel-media-export-db-container.vala
+++ b/src/plugins/media-export/rygel-media-export-db-container.vala
@@ -25,18 +25,11 @@ public class Rygel.MediaExport.DBContainer : MediaContainer {
protected MediaCache media_db;
public DBContainer (MediaCache media_db, string id, string title) {
- int count;
- try {
- count = media_db.get_child_count (id);
- } catch (DatabaseError error) {
- debug("Could not get child count from database: %s",
- error.message);
- count = 0;
- }
- base (id, null, title, count);
+ base (id, null, title, 0);
this.media_db = media_db;
this.container_updated.connect (on_db_container_updated);
+ this.on_db_container_updated (this, this);
}
private void on_db_container_updated (MediaContainer container,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]