encoder header is shared ptr

This commit is contained in:
badaix 2016-02-03 23:05:28 +01:00
parent bfdca3038d
commit d44232114a
7 changed files with 12 additions and 15 deletions

View file

@ -223,7 +223,7 @@ void OggEncoder::initEncoder()
* audio data will start on a new page, as per spec
*/
size_t pos(0);
headerChunk_ = new msg::Header("ogg");
headerChunk_.reset(new msg::Header("ogg"));
while (true)
{
int result = ogg_stream_flush(&os,&og);