[rygel] server: Extract all resources on object creation



commit ba2c811fa579b6bfbd4f5607ecec70efd57e7d07
Author: Jens Georg <mail jensge org>
Date:   Thu May 1 15:19:53 2014 +0200

    server: Extract all resources on object creation
    
    Signed-off-by: Jens Georg <mail jensge org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729090

 src/librygel-server/rygel-object-creator.vala |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/librygel-server/rygel-object-creator.vala b/src/librygel-server/rygel-object-creator.vala
index fcb1ecf..061564b 100644
--- a/src/librygel-server/rygel-object-creator.vala
+++ b/src/librygel-server/rygel-object-creator.vala
@@ -532,9 +532,7 @@ internal class Rygel.ObjectCreator: GLib.Object, Rygel.StateMachine {
     private void extract_item_parameters () throws Error {
         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;
+        foreach (var resource in this.didl_object.get_resources ()) {
             var info = resource.protocol_info;
 
             if (info != null) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]