[rygel] core: Throw error on creation of item of wrong class
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Throw error on creation of item of wrong class
- Date: Wed, 13 Apr 2011 12:07:11 +0000 (UTC)
commit d98727bb9a606d9f465058b692b2c3021bfa2b31
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Apr 13 14:35:33 2011 +0300
core: Throw error on creation of item of wrong class
We do throw error anyways but the error must be 712 to satisfy DLNA CTT
testcase 7.3.134.3.
src/rygel/rygel-item-creator.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-item-creator.vala b/src/rygel/rygel-item-creator.vala
index 8fa6ee8..c53a7f3 100644
--- a/src/rygel/rygel-item-creator.vala
+++ b/src/rygel/rygel-item-creator.vala
@@ -177,6 +177,10 @@ internal class Rygel.ItemCreator: GLib.Object, Rygel.StateMachine {
this.cancellable);
if (result.size > 0) {
media_object = result[0];
+ } else {
+ throw new ContentDirectoryError.BAD_METADATA
+ ("'%s' UPnP class unsupported",
+ didl_item.upnp_class);
}
}
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]