Bugfix: frae grabber should be called in Mixer

Grab frames in session update fails with SessionSource and SessionGroups.
This commit is contained in:
Bruno
2021-02-16 22:50:15 +01:00
parent 885ce67174
commit 935762506d
3 changed files with 4 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ protected:
*/
class FrameGrabbing
{
friend class Session;
friend class Mixer;
// Private Constructor
FrameGrabbing();

View File

@@ -209,6 +209,9 @@ void Mixer::update()
// update session and associated sources
session_->update(dt_);
// grab frames to recorders & streamers
FrameGrabbing::manager().grabFrame(session_->frame(), dt_);
// delete sources which failed update (one by one)
Source *failure = session()->failedSource();
if (failure != nullptr) {

View File

@@ -99,9 +99,6 @@ void Session::update(float dt)
// draw render view in Frame Buffer
render_.draw();
// grab frames to recorders & streamers
FrameGrabbing::manager().grabFrame(render_.frame(), dt);
}