#include "call_context.h"
#include <boost/thread/tss.hpp>
+#include <boost/lexical_cast.hpp>
namespace caspar { namespace core { namespace diagnostics {
return *local;
}
+std::wstring call_context::to_string() const
+{
+ if (video_channel == -1)
+ return L"[]";
+ else if (layer == -1)
+ return L"[ch=" + boost::lexical_cast<std::wstring>(video_channel) + L"]";
+ else
+ return L"[ch=" + boost::lexical_cast<std::wstring>(video_channel) + L"; layer=" + boost::lexical_cast<std::wstring>(layer) + L"]";
+}
+
}}}