examples: Fix serving files
authorJens Georg <jensg@openismus.com>
Fri, 5 Oct 2012 15:32:51 +0000 (17:32 +0200)
committerJens Georg <jensg@openismus.com>
Fri, 5 Oct 2012 15:33:08 +0000 (17:33 +0200)
examples/standalone-server.c

index 36b22d2..5bcb5d2 100644 (file)
@@ -109,7 +109,12 @@ int main (int argc, char *argv[])
         g_free (id);
 
         if (item != NULL) {
+            RygelMediaObject *object;
+
             RYGEL_MEDIA_ITEM (item)->mime_type = g_strdup (content_type);
+
+            object = RYGEL_MEDIA_OBJECT (item);
+            gee_collection_add (GEE_COLLECTION (object->uris), uri);
             rygel_simple_container_add_child_item (root_container, item);
         }