mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 18:59:59 +01:00
Unified Logs for sources initialization
This commit is contained in:
@@ -110,7 +110,7 @@ void CloneSource::init()
|
|||||||
++View::need_deep_update_;
|
++View::need_deep_update_;
|
||||||
|
|
||||||
// done init
|
// done init
|
||||||
Log::Info("Source %s cloning source %s.", name().c_str(), origin_->name().c_str() );
|
Log::Info("Source '%s' cloning source '%s'.", name().c_str(), origin_->name().c_str() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -783,9 +783,6 @@ void Mixer::groupAll()
|
|||||||
// NB: sessiongroup will be updated and inserted to Mixing view on next frame
|
// NB: sessiongroup will be updated and inserted to Mixing view on next frame
|
||||||
addSource(sessiongroup);
|
addSource(sessiongroup);
|
||||||
|
|
||||||
// inform of creation
|
|
||||||
Log::Info("%s '%s' created with %d sources", sessiongroup->info().c_str(),
|
|
||||||
sessiongroup->name().c_str(), sessiongroup->session()->size());
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
delete sessiongroup;
|
delete sessiongroup;
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ void RenderSource::init()
|
|||||||
++View::need_deep_update_;
|
++View::need_deep_update_;
|
||||||
|
|
||||||
// done init
|
// done init
|
||||||
Log::Info("Source Render linked to session (%d x %d).", int(fb->resolution().x), int(fb->resolution().y) );
|
Log::Info("Source '%s' linked to output (%d x %d).", name().c_str(), int(fb->resolution().x), int(fb->resolution().y) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -440,17 +440,12 @@ uint Session::size() const
|
|||||||
|
|
||||||
uint Session::numSources() const
|
uint Session::numSources() const
|
||||||
{
|
{
|
||||||
if (true) {
|
|
||||||
CountVisitor counter;
|
CountVisitor counter;
|
||||||
for( SourceList::const_iterator it = sources_.cbegin(); it != sources_.cend(); ++it) {
|
for( SourceList::const_iterator it = sources_.cbegin(); it != sources_.cend(); ++it) {
|
||||||
(*it)->accept(counter);
|
(*it)->accept(counter);
|
||||||
}
|
}
|
||||||
return counter.numSources();
|
return counter.numSources();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return size();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
SourceIdList Session::getIdList() const
|
SourceIdList Session::getIdList() const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -407,7 +407,10 @@ void SessionGroupSource::init()
|
|||||||
renderbuffer_->end();
|
renderbuffer_->end();
|
||||||
|
|
||||||
// done init
|
// done init
|
||||||
Log::Info("Session Group '%s' initialized (%d x %d).", name().c_str(), int(renderbuffer->resolution().x), int(renderbuffer->resolution().y) );
|
uint N = session_->size();
|
||||||
|
std::string numsource = std::to_string(N) + " source" + (N>1 ? "s" : "");
|
||||||
|
Log::Info("Source '%s' groupped %s (%d x %d).", name().c_str(), numsource.c_str(),
|
||||||
|
int(renderbuffer->resolution().x), int(renderbuffer->resolution().y) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user