Do not warn about canceled session set. Information message when user

quits transtition.
This commit is contained in:
brunoherbelin
2021-01-21 22:47:58 +01:00
parent 2fe282ef6a
commit 9942d8e628
+6 -4
View File
@@ -700,7 +700,11 @@ void Mixer::setView(View::Mode m)
if ( current_view_ == &transition_ ) {
// get the session detached from the transition view and set it as current session
// NB: detatch() can return nullptr, which is then ignored.
set ( transition_.detach() );
Session *se = transition_.detach();
if ( se != nullptr )
set ( se );
else
Log::Info("Transition interrupted: Session source added.");
}
switch (m) {
@@ -923,10 +927,8 @@ void Mixer::clear()
void Mixer::set(Session *s)
{
if ( s == nullptr ) {
Log::Warning("Session loading cancelled.");
if ( s == nullptr )
return;
}
// delete previous back session if needed
if (back_session_)