[rygel/rygel-0-16] examples: Fix serving files
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-16] examples: Fix serving files
- Date: Fri, 5 Oct 2012 15:39:43 +0000 (UTC)
commit 76042d3e1e28ebfcd9bcc7666efa15fc8558385c
Author: Jens Georg <jensg openismus com>
Date: Fri Oct 5 17:32:51 2012 +0200
examples: Fix serving files
examples/standalone-server.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/examples/standalone-server.c b/examples/standalone-server.c
index 36b22d2..5bcb5d2 100644
--- a/examples/standalone-server.c
+++ b/examples/standalone-server.c
@@ -109,7 +109,12 @@ int main (int argc, char *argv[])
g_free (id);
if (item != NULL) {
+ RygelMediaObject *object;
+
RYGEL_MEDIA_ITEM (item)->mime_type = g_strdup (content_type);
+
+ object = RYGEL_MEDIA_OBJECT (item);
+ gee_collection_add (GEE_COLLECTION (object->uris), uri);
rygel_simple_container_add_child_item (root_container, item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]