From 9bf92add4fa9882d11b35642845f7ac962a9b252 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 3 Sep 2012 10:43:18 +0200 Subject: [PATCH] Carefully extracted raptors from RTMP. --- lib/rtmpchunks.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rtmpchunks.cpp b/lib/rtmpchunks.cpp index 961176db..74a41a2a 100644 --- a/lib/rtmpchunks.cpp +++ b/lib/rtmpchunks.cpp @@ -37,7 +37,8 @@ std::map RTMPStream::Chunk::lastrecv; /// \warning Do not call if you are not actually sending the resulting data! /// \returns A std::string ready to be sent. std::string & RTMPStream::Chunk::Pack(){ - static std::string output = ""; + static std::string output; + output.clear(); RTMPStream::Chunk prev = lastsend[cs_id]; unsigned int tmpi; unsigned char chtype = 0x00;