mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 10:49:59 +01:00
Bugfix: frae grabber should be called in Mixer
Grab frames in session update fails with SessionSource and SessionGroups.
This commit is contained in:
@@ -80,7 +80,7 @@ protected:
|
|||||||
*/
|
*/
|
||||||
class FrameGrabbing
|
class FrameGrabbing
|
||||||
{
|
{
|
||||||
friend class Session;
|
friend class Mixer;
|
||||||
|
|
||||||
// Private Constructor
|
// Private Constructor
|
||||||
FrameGrabbing();
|
FrameGrabbing();
|
||||||
|
|||||||
@@ -209,6 +209,9 @@ void Mixer::update()
|
|||||||
// update session and associated sources
|
// update session and associated sources
|
||||||
session_->update(dt_);
|
session_->update(dt_);
|
||||||
|
|
||||||
|
// grab frames to recorders & streamers
|
||||||
|
FrameGrabbing::manager().grabFrame(session_->frame(), dt_);
|
||||||
|
|
||||||
// delete sources which failed update (one by one)
|
// delete sources which failed update (one by one)
|
||||||
Source *failure = session()->failedSource();
|
Source *failure = session()->failedSource();
|
||||||
if (failure != nullptr) {
|
if (failure != nullptr) {
|
||||||
|
|||||||
@@ -99,9 +99,6 @@ void Session::update(float dt)
|
|||||||
// draw render view in Frame Buffer
|
// draw render view in Frame Buffer
|
||||||
render_.draw();
|
render_.draw();
|
||||||
|
|
||||||
// grab frames to recorders & streamers
|
|
||||||
FrameGrabbing::manager().grabFrame(render_.frame(), dt);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user