Properties pannel of Session

Also added custom thumbnail of session.
This commit is contained in:
Bruno
2021-08-01 00:29:44 +02:00
parent c5f0be2b32
commit d1e833e0a1
7 changed files with 222 additions and 43 deletions

View File

@@ -38,11 +38,13 @@ void captureMixerSession(tinyxml2::XMLDocument *doc, std::string node, std::stri
Session *se = Mixer::manager().session();
// get the thumbnail (requires one opengl update to render)
FrameBufferImage *thumbnail = se->thumbnail();
XMLElement *imageelement = SessionVisitor::ImageToXML(thumbnail, doc);
if (imageelement)
sessionNode->InsertEndChild(imageelement);
delete thumbnail;
FrameBufferImage *thumbnail = se->renderThumbnail();
if (thumbnail) {
XMLElement *imageelement = SessionVisitor::ImageToXML(thumbnail, doc);
if (imageelement)
sessionNode->InsertEndChild(imageelement);
delete thumbnail;
}
// save all sources using source visitor
SessionVisitor sv(doc, sessionNode);