Currently only the first resource URI is passed on to the container to where
the object is created. This patch make sure to preserve all uris.

Signed-off-by: Richard Röjfors <richard@puffinpack.se>
---
--- a/src/librygel-server/rygel-object-creator.vala
+++ b/src/librygel-server/rygel-object-creator.vala
@@ -533,8 +533,9 @@ internal class Rygel.ObjectCreator: GLib.Object, Rygel.StateMachine {
         var item = this.object as MediaItem;
 
         var resources = this.didl_object.get_resources ();
-        if (resources != null && resources.length () > 0) {
-            var resource = resources.nth (0).data;
+        int i;
+        for (i = 0; i < (resources != null ? resources.length () : 0); i++) {
+            var resource = resources.nth (i).data;
             var info = resource.protocol_info;
 
             if (info != null) {
