rygel r433 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r433 - trunk/src/rygel
- Date: Tue, 13 Jan 2009 14:33:11 +0000 (UTC)
Author: zeeshanak
Date: Tue Jan 13 14:33:10 2009
New Revision: 433
URL: http://svn.gnome.org/viewvc/rygel?rev=433&view=rev
Log:
Use pointers for dealing with raw data instead of strings.
Modified:
trunk/src/rygel/rygel-streamer.vala
Modified: trunk/src/rygel/rygel-streamer.vala
==============================================================================
--- trunk/src/rygel/rygel-streamer.vala (original)
+++ trunk/src/rygel/rygel-streamer.vala Tue Jan 13 14:33:10 2009
@@ -281,9 +281,9 @@
msg.set_status (Soup.KnownStatusCode.OK);
}
- msg.response_body.append (Soup.MemoryUse.COPY,
- contents.offset ((long) offset),
- length);
+ char *data = (char *) contents + offset;
+
+ msg.response_body.append (Soup.MemoryUse.COPY, data, length);
}
/* Parses the HTTP Range header on @message and sets:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]