rygel r456 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r456 - trunk/src/rygel
- Date: Sun, 18 Jan 2009 19:28:18 +0000 (UTC)
Author: zeeshanak
Date: Sun Jan 18 19:28:18 2009
New Revision: 456
URL: http://svn.gnome.org/viewvc/rygel?rev=456&view=rev
Log:
Use Gee.ArrayList instead of GLib.List to keep DIDLLiteResource instances.
Modified:
trunk/src/rygel/rygel-media-item.vala
Modified: trunk/src/rygel/rygel-media-item.vala
==============================================================================
--- trunk/src/rygel/rygel-media-item.vala (original)
+++ trunk/src/rygel/rygel-media-item.vala Sun Jan 18 19:28:18 2009
@@ -23,6 +23,7 @@
*/
using GUPnP;
+using Gee;
public errordomain Rygel.MediaItemError {
UNKNOWN_URI_TYPE
@@ -171,12 +172,13 @@
}
// FIXME: We only proxy URIs through our HTTP server for now
- private List<DIDLLiteResource?>? get_transcoded_resources
+ private ArrayList<DIDLLiteResource?>? get_transcoded_resources
(DIDLLiteResource orig_res) {
if (orig_res.protocol == "http-get")
return null;
- List<DIDLLiteResource?> resources = new List<DIDLLiteResource?> ();
+ var resources = new ArrayList<DIDLLiteResource?> ();
+
// Copy the original res first
DIDLLiteResource res = orig_res;
@@ -184,7 +186,7 @@
res.uri = this.http_server.create_http_uri_for_item (this);
res.protocol = "http-get";
- resources.append (res);
+ resources.add (res);
return resources;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]