From: Zeeshan Ali (Khattak) Date: Thu, 28 May 2009 13:54:52 +0000 (+0300) Subject: Clear the existing service list first X-Git-Tag: RYGEL_0_3~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbf778d28959cf351fc500aea1780b5c6c669384;p=profile%2Fivi%2Frygel.git Clear the existing service list first Services were getting accumulated in the description files each time rygel was started. This change is to fix that. --- diff --git a/src/rygel/rygel-media-server-factory.vala b/src/rygel/rygel-media-server-factory.vala index 9c105b1..9f7053d 100644 --- a/src/rygel/rygel-media-server-factory.vala +++ b/src/rygel/rygel-media-server-factory.vala @@ -200,7 +200,10 @@ public class Rygel.MediaServerFactory { private void add_service_to_desc (Xml.Node *service_list_node, string plugin_name, ResourceInfo resource_info) { - // Create the service node + // 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"); service_node->new_child (null, "serviceType", resource_info.upnp_type);