[rygel] media-export: Use constructor to create media database



commit 50c9c7e036e1101ccb8e5519639b394771f0ebff
Author: Jens Georg <mail jensge org>
Date:   Mon Feb 8 11:14:48 2010 +0100

    media-export: Use constructor to create media database

 .../rygel-media-export-root-container.vala         |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala b/src/plugins/media-export/rygel-media-export-root-container.vala
index d3f31a1..e74cea5 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -73,7 +73,7 @@ public class Rygel.MediaExportRootContainer : Rygel.MediaDBContainer {
             try {
                 MediaExportRootContainer.instance =
                                              new MediaExportRootContainer ();
-            } catch (MediaDBError err) {
+            } catch (Error err) {
                 warning("Failed to create instance of database");
                 MediaExportRootContainer.instance = new NullContainer ();
             }
@@ -116,9 +116,9 @@ public class Rygel.MediaExportRootContainer : Rygel.MediaDBContainer {
     /**
      * Create a new root container.
      */
-    private MediaExportRootContainer () throws MediaDBError {
+    private MediaExportRootContainer () throws Error {
         var object_factory = new MediaExportObjectFactory ();
-        var db = MediaDB.create_with_factory ("media-export", object_factory);
+        var db = new MediaDB.with_factory ("media-export", object_factory);
 
         base (db, "0", "MediaExportRoot");
 



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