rygel r488 - trunk/src/plugins/tracker
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r488 - trunk/src/plugins/tracker
- Date: Wed, 28 Jan 2009 12:32:47 +0000 (UTC)
Author: zeeshanak
Date: Wed Jan 28 12:32:47 2009
New Revision: 488
URL: http://svn.gnome.org/viewvc/rygel?rev=488&view=rev
Log:
Remove some forgotten redundant code.
Modified:
trunk/src/plugins/tracker/rygel-media-tracker.vala
Modified: trunk/src/plugins/tracker/rygel-media-tracker.vala
==============================================================================
--- trunk/src/plugins/tracker/rygel-media-tracker.vala (original)
+++ trunk/src/plugins/tracker/rygel-media-tracker.vala Wed Jan 28 12:32:47 2009
@@ -76,35 +76,23 @@
public override void add_children_metadata (DIDLLiteWriter didl_writer,
BrowseArgs args)
throws GLib.Error {
- TrackerContainer container;
-
if (args.requested_count == 0)
args.requested_count = MAX_REQUESTED_COUNT;
- container = this.find_container_by_id (args.object_id);
- if (container == null)
- args.number_returned = 0;
- else {
- ArrayList<MediaItem> children;
-
- children = this.get_children (args.object_id,
- args.index,
- args.requested_count,
- out args.total_matches);
+ ArrayList<MediaItem> children;
- /* Iterate through all items */
- for (int i = 0; i < children.size; i++) {
- children[i].serialize (didl_writer);
- }
+ children = this.get_children (args.object_id,
+ args.index,
+ args.requested_count,
+ out args.total_matches);
+ args.number_returned = children.size;
- args.number_returned = children.size;
+ /* Iterate through all items */
+ for (int i = 0; i < children.size; i++) {
+ children[i].serialize (didl_writer);
}
- if (args.number_returned > 0) {
- args.update_id = uint32.MAX;
- } else {
- throw new ContentDirectoryError.NO_SUCH_OBJECT ("No such object");
- }
+ args.update_id = uint32.MAX;
}
public override void add_metadata (DIDLLiteWriter didl_writer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]