summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/librygel-server/rygel-object-creator.vala6
2 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a5b5951a..045e575e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,7 +39,7 @@ VALA_REQUIRED=0.24.0
VALADOC_REQUIRED=0.2
GSSDP_REQUIRED=0.13.0
GUPNP_REQUIRED=0.20.14
-GUPNP_AV_REQUIRED=0.12.4
+GUPNP_AV_REQUIRED=0.12.8
GUPNP_DLNA_REQUIRED=0.9.4
GSTREAMER_REQUIRED=1.0
GSTPBU_REQUIRED=1.0
diff --git a/src/librygel-server/rygel-object-creator.vala b/src/librygel-server/rygel-object-creator.vala
index 7a5b0764..0c31643e 100644
--- a/src/librygel-server/rygel-object-creator.vala
+++ b/src/librygel-server/rygel-object-creator.vala
@@ -255,6 +255,12 @@ internal class Rygel.ObjectCreator: GLib.Object, Rygel.StateMachine {
(_("Invalid upnp:class given in CreateObject"));
}
+ if (!didl_object.is_restricted_set ()) {
+ var msg = _("Object is missing the @restricted attribute");
+ throw new ContentDirectoryError.BAD_METADATA (msg);
+ }
+
+
if (didl_object.restricted) {
throw new ContentDirectoryError.BAD_METADATA
(_("Cannot create restricted item"));