[rygel] examples: Fix for new API
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] examples: Fix for new API
- Date: Mon, 20 Jun 2016 17:35:14 +0000 (UTC)
commit c47b7074a0f355a17e10a26205be57ea32a4e428
Author: Jens Georg <mail jensge org>
Date: Mon Jun 20 19:29:22 2016 +0200
examples: Fix for new API
Signed-off-by: Jens Georg <mail jensge org>
examples/server-plugins/C/example-root-container.c | 2 ++
.../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 27a073e..fa3a8aa 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 d9ebcf3..ea77a5c 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]