[rygel] core: Clear 'serviceList' before adding services
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] core: Clear 'serviceList' before adding services
- Date: Tue, 23 Jun 2009 12:09:32 -0400 (EDT)
commit e0e2feb21d9a8098fee4c02cc4a264b821429fbd
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Jun 23 19:07:07 2009 +0300
core: Clear 'serviceList' before adding services
src/rygel/rygel-root-device-factory.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/rygel/rygel-root-device-factory.vala b/src/rygel/rygel-root-device-factory.vala
index 4b3712b..3f4b776 100644
--- a/src/rygel/rygel-root-device-factory.vala
+++ b/src/rygel/rygel-root-device-factory.vala
@@ -204,6 +204,9 @@ public class Rygel.RootDeviceFactory {
return;
}
+ // Clear the existing service list first
+ service_list_node->set_content ("");
+
foreach (ResourceInfo resource_info in plugin.resource_infos) {
// FIXME: We only support plugable services for now
if (resource_info.type.is_a (typeof (Service))) {
@@ -217,9 +220,6 @@ public class Rygel.RootDeviceFactory {
private void add_service_to_desc (Xml.Node *service_list_node,
string plugin_name,
ResourceInfo resource_info) {
- // Clear the existing service list first
- service_list_node->set_content ("");
-
// Now create the service node
Xml.Node *service_node = service_list_node->new_child (null, "service");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]