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;