[rygel] external: Get DisplayName from correct interface
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] external: Get DisplayName from correct interface
- Date: Sat, 21 Jul 2012 16:46:57 +0000 (UTC)
commit e3576b54eba948663f8ff5c5644865862ad9dc96
Author: Jens Georg <mail jensge org>
Date: Fri Jul 20 19:51:20 2012 +0200
external: Get DisplayName from correct interface
src/plugins/external/rygel-external-container.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/external/rygel-external-container.vala b/src/plugins/external/rygel-external-container.vala
index 964faca..9f8306f 100644
--- a/src/plugins/external/rygel-external-container.vala
+++ b/src/plugins/external/rygel-external-container.vala
@@ -315,11 +315,13 @@ public class Rygel.External.Container : Rygel.MediaContainer,
DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
var props = yield props_iface.get_all (MediaContainerProxy.IFACE);
var child_count = (uint) props.lookup ("ChildCount");
+ this.child_count = (int) child_count;
+ props = yield props_iface.get_all (MediaObjectProxy.IFACE);
+
this.title = get_mandatory_string_value (props,
"DisplayName",
this.id,
this.service_name);
- this.child_count = (int) child_count;
} catch (GLib.Error property_error) {
warning ("Failed to update information about container '%s': %s",
this.actual_container.get_object_path (),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]