Fixed Session thumbnail

wait for all sources to be ready before creating the thumbnail.
This commit is contained in:
Bruno
2021-04-30 10:17:10 +02:00
parent 92cd8f945e
commit 63544c603d
3 changed files with 18 additions and 4 deletions

View File

@@ -19,6 +19,7 @@ public:
RenderView ();
~RenderView ();
// render frame (in opengl context)
void draw () override;
bool canSelect(Source *) override { return false; }
@@ -28,9 +29,11 @@ public:
void setFading(float f = 0.f);
float fading() const;
// current frame
inline FrameBuffer *frame () const { return frame_buffer_; }
// get a thumbnail; wait for a promise to be fullfiled
// get a thumbnail outside of opengl context; wait for a promise to be fullfiled after draw
void drawThumbnail();
FrameBufferImage *thumbnail ();
};