[rygel] core: Param uri of MediaItem.add_resource is now nullable



commit c6c4bd75980573d83366cf8060e4a7c5b6117d41
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Sep 1 22:55:12 2009 +0300

    core: Param uri of MediaItem.add_resource is now nullable

 src/rygel/rygel-media-item.vala |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-media-item.vala b/src/rygel/rygel-media-item.vala
index 8d1c59e..15b046e 100644
--- a/src/rygel/rygel-media-item.vala
+++ b/src/rygel/rygel-media-item.vala
@@ -114,12 +114,15 @@ public class Rygel.MediaItem : MediaObject {
     }
 
     internal DIDLLiteResource add_resource (DIDLLiteItem didl_item,
-                                            string       uri,
+                                            string?      uri,
                                             string?      protocol)
                                             throws Error {
         var res = didl_item.add_resource ();
 
-        res.uri = uri;
+        if (uri != null) {
+            res.uri = uri;
+        }
+
         res.size = this.size;
         res.duration = this.duration;
         res.bitrate = this.bitrate;



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