From ee20718c51d57d80b5514d63e298ecfedc02073c Mon Sep 17 00:00:00 2001 From: Bruno Date: Tue, 27 Apr 2021 23:21:33 +0200 Subject: [PATCH] remove debug code --- ActionManager.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ActionManager.cpp b/ActionManager.cpp index 5e1e352..7a63e37 100644 --- a/ActionManager.cpp +++ b/ActionManager.cpp @@ -26,9 +26,6 @@ using namespace tinyxml2; void captureMixerSession(tinyxml2::XMLDocument *doc, std::string node, std::string label) { - // get session to operate on - Session *se = Mixer::manager().session(); - se->lock(); // create node XMLElement *sessionNode = doc->NewElement( node.c_str() ); @@ -38,6 +35,10 @@ void captureMixerSession(tinyxml2::XMLDocument *doc, std::string node, std::stri // view indicates the view when this action occured sessionNode->SetAttribute("view", (int) Mixer::manager().view()->mode()); + // get session to operate on + Session *se = Mixer::manager().session(); + se->lock(); + // get the thumbnail (requires one opengl update to render) FrameBufferImage *thumbnail = se->thumbnail(); XMLElement *imageelement = SessionVisitor::ImageToXML(thumbnail, doc); @@ -96,7 +97,7 @@ void Action::store(const std::string &label) #ifdef ACTION_DEBUG Log::Info("Action stored %d '%s'", history_step_, label.c_str()); - XMLSaveDoc(&history_doc_, "/home/bhbn/history.xml"); +// XMLSaveDoc(&history_doc_, "/home/bhbn/history.xml"); #endif }