[rygel] server: Add description property to MediaItem
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] server: Add description property to MediaItem
- Date: Fri, 17 Aug 2012 22:12:47 +0000 (UTC)
commit 6babef13c8bb547c511cad5a46e867545fc03922
Author: Jens Georg <mail jensge org>
Date: Sat Aug 18 00:09:14 2012 +0200
server: Add description property to MediaItem
src/librygel-server/rygel-media-item.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/librygel-server/rygel-media-item.vala b/src/librygel-server/rygel-media-item.vala
index 2e0584e..56e3525 100644
--- a/src/librygel-server/rygel-media-item.vala
+++ b/src/librygel-server/rygel-media-item.vala
@@ -57,6 +57,8 @@ public abstract class Rygel.MediaItem : MediaObject {
public bool place_holder { get; set; default = false; }
+ public string description { get; set; default = null; }
+
internal override OCMFlags ocm_flags {
get {
if (this.place_holder) {
@@ -210,6 +212,10 @@ public abstract class Rygel.MediaItem : MediaObject {
didl_item.date = this.date;
}
+ if (this.description != null) {
+ didl_item.description = this.description;
+ }
+
/* We list proxy/transcoding resources first instead of original URIs
* because some crappy MediaRenderer/ControlPoint implemenation out
* there just choose the first one in the list instead of the one they
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]