diff options
author | Jens Georg <mail@jensge.org> | 2016-06-20 19:29:22 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2016-06-20 19:33:39 +0200 |
commit | c47b7074a0f355a17e10a26205be57ea32a4e428 (patch) | |
tree | 1c3dcfb89e2279919d74deb28cf7dfc77f48389d /examples | |
parent | 37e92669dfd5c5d9a19a1d9e5849b7e7bfeec0f2 (diff) | |
download | rygel-c47b7074a0f355a17e10a26205be57ea32a4e428.tar.gz |
examples: Fix for new API
Signed-off-by: Jens Georg <mail@jensge.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/server-plugins/C/example-root-container.c | 2 | ||||
-rw-r--r-- | examples/server-plugins/vala/example-root-container-vala.vala | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/examples/server-plugins/C/example-root-container.c b/examples/server-plugins/C/example-root-container.c index 27a073e2..fa3a8aa9 100644 --- a/examples/server-plugins/C/example-root-container.c +++ b/examples/server-plugins/C/example-root-container.c @@ -47,12 +47,14 @@ rygel_example_root_container_construct (GType object_type, const gchar *title) { 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); + rygel_media_file_item_add_engine_resources (item, NULL, NULL); g_object_unref (item); item = rygel_music_item_new ("test 2", (RygelMediaContainer*) self, "Test 1", RYGEL_MUSIC_ITEM_UPNP_CLASS); 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); + rygel_media_file_item_add_engine_resources (item, NULL, NULL); g_object_unref (item); return self; diff --git a/examples/server-plugins/vala/example-root-container-vala.vala b/examples/server-plugins/vala/example-root-container-vala.vala index d9ebcf38..ea77a5c3 100644 --- a/examples/server-plugins/vala/example-root-container-vala.vala +++ b/examples/server-plugins/vala/example-root-container-vala.vala @@ -41,11 +41,13 @@ public class Rygel.Example.RootContainerVala : Rygel.SimpleContainer { var item = new MusicItem ("test 1", this, "Test 1"); item.add_uri ("file:///home/murrayc/Music/Madness/05_Baggy_Trousers.mp3"); item.mime_type = "audio/mpeg"; + item.add_engine_resources.begin (); this.add_child_item(item); - + item = new MusicItem ("test 2", this, "Test 2"); item.add_uri ("file:///home/murrayc/Music/08%20Busload%20of%20Faith.mp3"); item.mime_type = "audio/mpeg"; + item.add_engine_resources.begin (); this.add_child_item(item); } } |