[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9994: reverse the properties of a ty
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9994: reverse the properties of a typed object when responding to a red5 echo test. |
Date: |
Mon, 16 Feb 2009 18:02:00 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9994
committer: address@hidden
branch nick: rtmp
timestamp: Mon 2009-02-16 18:02:00 -0700
message:
reverse the properties of a typed object when responding to a red5 echo test.
modified:
libnet/http.cpp
=== modified file 'libnet/http.cpp'
--- a/libnet/http.cpp 2009-02-17 00:36:57 +0000
+++ b/libnet/http.cpp 2009-02-17 01:02:00 +0000
@@ -1172,13 +1172,13 @@
// GNASH_REPORT_FUNCTION;
boost::shared_ptr<amf::Buffer> data;
-#if 1
amf::Element nel;
if (el.getType() == amf::Element::TYPED_OBJECT_AMF0) {
nel.makeTypedObject();
string name = el.getName();
nel.setName(name);
if (el.propertySize()) {
+ // FIXME: see about using std::reverse() instead.
for (int i=el.propertySize()-1; i>=0; i--) {
// for (int i=0 ; i<el.propertySize(); i++) {
boost::shared_ptr<amf::Element> child = el.getProperty(i);
@@ -1191,9 +1191,6 @@
} else {
data = el.encode();
}
-#else
- data = el.encode();
-#endif
return formatEchoResponse(num, data->reference(), data->allocated());
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9994: reverse the properties of a typed object when responding to a red5 echo test.,
rob <=