[rygel] server: Add media resources to media object
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] server: Add media resources to media object
- Date: Sun, 8 Feb 2015 13:25:03 +0000 (UTC)
commit 3d42dcb1c7de7da30c8921f00ca96819e5293c3b
Author: Jens Georg <mail jensge org>
Date: Thu Nov 13 15:39:26 2014 +0100
server: Add media resources to media object
Based on Cablelabs's CVP-2 implementation
Signed-off-by: Jens Georg <mail jensge org>
src/librygel-server/rygel-media-object.vala | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/librygel-server/rygel-media-object.vala b/src/librygel-server/rygel-media-object.vala
index 4b185f7..5235f96 100644
--- a/src/librygel-server/rygel-media-object.vala
+++ b/src/librygel-server/rygel-media-object.vala
@@ -69,6 +69,9 @@ public abstract class Rygel.MediaObject : GLib.Object {
this.uris.add (uri);
}
+ private Gee.List<MediaResource> media_resources
+ = new Gee.LinkedList<MediaResource> ();
+
// You can keep both an unowned and owned ref to parent of this MediaObject.
// In most cases, one will only need to keep an unowned ref to avoid cyclic
// references since usually the parent container will keep refs to child items.
@@ -214,6 +217,13 @@ public abstract class Rygel.MediaObject : GLib.Object {
return writables;
}
+ /**
+ * Return the MediaResource list.
+ */
+ public Gee.List<MediaResource> get_resource_list () {
+ return media_resources;
+ }
+
public abstract DIDLLiteObject? serialize (Serializer serializer,
HTTPServer http_server)
throws Error;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]