[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9786: adjust the seekptr when removi
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9786: adjust the seekptr when removing data, not the size of the buffer. |
Date: |
Wed, 26 Nov 2008 10:10:41 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9786
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-11-26 10:10:41 -0700
message:
adjust the seekptr when removing data, not the size of the buffer.
modified:
libamf/buffer.cpp
=== modified file 'libamf/buffer.cpp'
--- a/libamf/buffer.cpp 2008-11-26 04:53:45 +0000
+++ b/libamf/buffer.cpp 2008-11-26 17:10:41 +0000
@@ -544,8 +544,8 @@
}
std::copy(start + 1, end(), start);
-// *(end()) = 0;
- _nbytes--;
+ *(end() - 1) = 0;
+ _seekptr--;
return _data.get();
}
@@ -565,7 +565,7 @@
// GNASH_REPORT_FUNCTION;
std::copy((_data.get() + start + 1), end(), (_data.get() + start)),
// *end() = 0;
- _nbytes--;
+ _seekptr--;
return _data.get();
}
@@ -580,7 +580,7 @@
///
/// @param start The location of the byte to remove from the
/// Buffer
-/// @param range The amoiunt of bytes to remove from the Buffer.
+/// @param range The amount of bytes to remove from the Buffer.
///
/// @return A real pointer to the base address of the Buffer.
Network::byte_t *
@@ -589,7 +589,8 @@
// GNASH_REPORT_FUNCTION;
std::copy((_data.get() + range + 1), end(), (_data.get() + start)),
// *end() = 0;
- _nbytes -= (range - start);
+ _seekptr -= range;
+
return _data.get();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9786: adjust the seekptr when removing data, not the size of the buffer.,
rob <=