# HG changeset patch # User Chris Cannam # Date 1474040040 -3600 # Node ID 524a6d5ee813c9826ba9bba5b7aaa67298dd8a8d # Parent 9bebe2780cc0606a4cb0b66c7f05cbb28a9c626d Fix dopy error diff -r 9bebe2780cc0 -r 524a6d5ee813 utilities/vampipe-convert.cpp --- a/utilities/vampipe-convert.cpp Fri Sep 16 16:28:47 2016 +0100 +++ b/utilities/vampipe-convert.cpp Fri Sep 16 16:34:00 2016 +0100 @@ -127,6 +127,11 @@ { Json j; + VampJson::BufferSerialisation serialisation = + (useBase64 ? + VampJson::BufferSerialisation::Base64 : + VampJson::BufferSerialisation::Text); + switch (rr.type) { case RRType::List: @@ -140,10 +145,7 @@ break; case RRType::Process: j = VampJson::fromVampRequest_Process - (rr.processRequest, mapper, - useBase64 ? - VampJson::BufferSerialisation::Base64 : - VampJson::BufferSerialisation::Text); + (rr.processRequest, mapper, serialisation); break; case RRType::Finish: j = VampJson::fromVampRequest_Finish(rr.finishPlugin, mapper); @@ -205,7 +207,7 @@ Json j; VampJson::BufferSerialisation serialisation = - (m_useBase64 ? + (useBase64 ? VampJson::BufferSerialisation::Base64 : VampJson::BufferSerialisation::Text);