summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2015-05-09 23:40:06 +0200
committerJens Georg <mail@jensge.org>2015-05-09 23:40:54 +0200
commit6ecba0a2926d2b6ae65a38a83961feb0ecc4d282 (patch)
treedf7fc02befd7c2a8c64ae902a5a684a37a22c7bc /examples
parent339738aa7645a586ff91fcf66527fb2f27dbf3ac (diff)
downloadrygel-6ecba0a2926d2b6ae65a38a83961feb0ecc4d282.tar.gz
examples: Fix C server example
Was using the wrong functions to add uris to items. Signed-off-by: Jens Georg <mail@jensge.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/server-plugins/C/example-root-container.c4
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 f3517b16..52a69d5b 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);