[rygel] core: @restricted MUST be false on CreateObject
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: @restricted MUST be false on CreateObject
- Date: Tue, 14 Jun 2011 13:27:49 +0000 (UTC)
commit 8bf1c0b8fb1c0988df9592408c32694594e8dd0f
Author: Jens Georg <mail jensge org>
Date: Tue Jun 14 15:23:18 2011 +0200
core: @restricted MUST be false on CreateObject
Partially fixes UPnP CTT AV-CD:1-6.1
src/rygel/rygel-item-creator.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-item-creator.vala b/src/rygel/rygel-item-creator.vala
index 7e5f34e..6047be6 100644
--- a/src/rygel/rygel-item-creator.vala
+++ b/src/rygel/rygel-item-creator.vala
@@ -91,6 +91,11 @@ internal class Rygel.ItemCreator: GLib.Object, Rygel.StateMachine {
"were found in 'dlnaManaged'");
}
+ if (didl_item.restricted) {
+ throw new ContentDirectoryError.INVALID_ARGS
+ ("Cannot create restricted item");
+ }
+
var container = yield this.fetch_container ();
this.item = this.create_item (didl_item.id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]