[rygel/rygel-0-26] examples: Fix C server example
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-26] examples: Fix C server example
- Date: Sat, 9 May 2015 21:43:29 +0000 (UTC)
commit 5d5ea9b96a12e6aa717507c47a98e24d1894c63a
Author: Jens Georg <mail jensge org>
Date: Sat May 9 23:40:06 2015 +0200
examples: Fix C server example
Was using the wrong functions to add uris to items.
Signed-off-by: Jens Georg <mail jensge org>
examples/server-plugins/C/example-root-container.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/examples/server-plugins/C/example-root-container.c
b/examples/server-plugins/C/example-root-container.c
index f3517b1..52a69d5 100644
--- a/examples/server-plugins/C/example-root-container.c
+++ b/examples/server-plugins/C/example-root-container.c
@@ -44,13 +44,13 @@ rygel_example_root_container_construct (GType object_type, const gchar *title) {
self = (RygelExampleRootContainer*) rygel_simple_container_construct_root (object_type, title);
item = rygel_music_item_new ("test 1", (RygelMediaContainer*) self, "Test 1", RYGEL_MUSIC_ITEM_UPNP_CLASS);
- rygel_media_file_item_add_uri (item, "file:///home/murrayc/Music/Madness/05_Baggy_Trousers.mp3");
+ rygel_media_object_add_uri (RYGEL_MEDIA_OBJECT (item),
"file:///home/murrayc/Music/Madness/05_Baggy_Trousers.mp3");
rygel_media_file_item_set_mime_type (item, "audio/mpeg");
rygel_simple_container_add_child_item ((RygelSimpleContainer*) self, item);
g_object_unref (item);
item = rygel_music_item_new ("test 2", (RygelMediaContainer*) self, "Test 1", RYGEL_MUSIC_ITEM_UPNP_CLASS);
- rygel_media_file_item_add_uri (item, "file:///home/murrayc/Music/08%20Busload%20of%20Faith.mp3");
+ rygel_media_object_add_uri (RYGEL_MEDIA_OBJECT (item),
"file:///home/murrayc/Music/08%20Busload%20of%20Faith.mp3");
rygel_media_file_item_set_mime_type (item, "audio/mpeg");
rygel_simple_container_add_child_item ((RygelSimpleContainer*) self, item);
g_object_unref (item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]