projects
/
profile
/
ivi
/
rygel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f661fc
)
core: Add factory before creating devices from it
author
Zeeshan Ali (Khattak)
<zeeshanak@gnome.org>
Thu, 30 Jul 2009 00:53:50 +0000
(
03:53
+0300)
committer
Zeeshan Ali (Khattak)
<zeeshanak@gnome.org>
Thu, 30 Jul 2009 00:53:50 +0000
(
03:53
+0300)
src/rygel/rygel-main.vala
patch
|
blob
|
history
diff --git
a/src/rygel/rygel-main.vala
b/src/rygel/rygel-main.vala
index
4cdfbdc
..
8c95b3c
100644
(file)
--- a/
src/rygel/rygel-main.vala
+++ b/
src/rygel/rygel-main.vala
@@
-107,6
+107,8
@@
public class Rygel.Main : Object {
if (host_ip == null || host_ip == context.host_ip) {
var factory = new RootDeviceFactory (context);
+ this.factories.add (factory);
+
var plugins = new ArrayList <Plugin> ();
foreach (var plugin in this.plugin_loader.list_plugins ()) {
plugins.add (plugin);
@@
-115,8
+117,6
@@
public class Rygel.Main : Object {
foreach (var plugin in plugins) {
this.create_device (plugin, factory);
}
-
- this.factories.add (factory);
} else {
debug ("Ignoring network context %s (%s).",
context.interface,