mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 19:29:58 +01:00
BugFix prevent busy init of checkerboard texture
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
#include <thread>
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
@@ -43,7 +44,7 @@
|
|||||||
|
|
||||||
#include "SourceControlWindow.h"
|
#include "SourceControlWindow.h"
|
||||||
|
|
||||||
#define CHECKER_RESOLUTION 6000
|
#define CHECKER_RESOLUTION 5000
|
||||||
class Stream *checker_background_ = new Stream;
|
class Stream *checker_background_ = new Stream;
|
||||||
|
|
||||||
typedef struct payload
|
typedef struct payload
|
||||||
@@ -104,8 +105,10 @@ SourceControlWindow::SourceControlWindow() : WorkspaceWindow("SourceController")
|
|||||||
"videobalance saturation=0 contrast=1",
|
"videobalance saturation=0 contrast=1",
|
||||||
CHECKER_RESOLUTION, CHECKER_RESOLUTION);
|
CHECKER_RESOLUTION, CHECKER_RESOLUTION);
|
||||||
checker_background_->play(false);
|
checker_background_->play(false);
|
||||||
while (checker_background_->texture() == Resource::getTextureBlack())
|
while (checker_background_->texture() == Resource::getTextureBlack()){
|
||||||
|
std::this_thread::sleep_for (std::chrono::milliseconds(30));
|
||||||
checker_background_->update();
|
checker_background_->update();
|
||||||
|
}
|
||||||
checker_background_->close();
|
checker_background_->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user