tons of fixes
This commit is contained in:
@@ -34,6 +34,7 @@ class DeckLinkInNode : public dmf::NodeBase {
|
|||||||
log("Detected: %dx%d @ %d/%d fps", vi.width, vi.height, vi.fps_num, vi.fps_den);
|
log("Detected: %dx%d @ %d/%d fps", vi.width, vi.height, vi.fps_num, vi.fps_den);
|
||||||
|
|
||||||
// --- Video writer ---
|
// --- Video writer ---
|
||||||
|
if (!config().contains("video_flow_id")) { log("no video output connected — exiting"); return; }
|
||||||
const auto video_flow_info = config().at("video_flow_id");
|
const auto video_flow_info = config().at("video_flow_id");
|
||||||
const auto video_flow_id = video_flow_info.at("id").get<std::string>();
|
const auto video_flow_id = video_flow_info.at("id").get<std::string>();
|
||||||
const int width = video_flow_info.value("width", vi.width);
|
const int width = video_flow_info.value("width", vi.width);
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ class NDIInNode : public dmf::NodeBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// --- video flow ---
|
// --- video flow ---
|
||||||
|
if (!config().contains("video_flow_id")) { log("no video output connected — exiting"); return; }
|
||||||
const auto video_flow_info = config().at("video_flow_id");
|
const auto video_flow_info = config().at("video_flow_id");
|
||||||
const auto video_flow_id = video_flow_info.at("id").get<std::string>();
|
const auto video_flow_id = video_flow_info.at("id").get<std::string>();
|
||||||
const int width = video_flow_info.value("width", src.width);
|
const int width = video_flow_info.value("width", src.width);
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
class TestPatternNode : public dmf::NodeBase {
|
class TestPatternNode : public dmf::NodeBase {
|
||||||
void run() override {
|
void run() override {
|
||||||
// --- video flow ---
|
// --- video flow ---
|
||||||
|
if (!config().contains("video_flow_id")) { log("no video output connected — exiting"); return; }
|
||||||
const auto flow_info = config().at("video_flow_id");
|
const auto flow_info = config().at("video_flow_id");
|
||||||
const auto flow_id = flow_info.at("id").get<std::string>();
|
const auto flow_id = flow_info.at("id").get<std::string>();
|
||||||
const int width = flow_info.value("width", 1920);
|
const int width = flow_info.value("width", 1920);
|
||||||
|
|||||||
Reference in New Issue
Block a user