private MediaObject media_object;
private MediaContainer root_container;
+ private uint32 system_update_id;
private ServiceAction action;
private Rygel.DIDLLiteWriter didl_writer;
public Browse (ContentDirectory content_dir,
owned ServiceAction action) {
this.root_container = content_dir.root_container;
+ this.system_update_id = content_dir.system_update_id;
this.action = (owned) action;
this.didl_writer =
string didl = this.didl_writer.get_string ();
if (this.update_id == uint32.MAX) {
- this.update_id = this.root_container.update_id;
+ this.update_id = this.system_update_id;
}
/* Set action return arguments */
public MediaContainer root_container;
private ArrayList<Browse> browses;
+ public uint32 system_update_id;
// Public abstract methods derived classes need to implement
public virtual MediaContainer? create_root_container () {
private void get_system_update_id_cb (ContentDirectory content_dir,
owned ServiceAction action) {
/* Set action return arguments */
- action.set ("Id", typeof (uint32), this.root_container.update_id);
+ action.set ("Id", typeof (uint32), this.system_update_id);
action.return ();
}
ref GLib.Value value) {
/* Set action return arguments */
value.init (typeof (uint32));
- value.set_uint (this.root_container.update_id);
+ value.set_uint (this.system_update_id);
}
/* action GetSearchCapabilities implementation */