fixed ndiout flow_id -> video_flow_id
This commit is contained in:
@@ -34,7 +34,7 @@ struct NDIContext {
|
|||||||
class NDIOutNode : public dmf::NodeBase {
|
class NDIOutNode : public dmf::NodeBase {
|
||||||
void run() override {
|
void run() override {
|
||||||
// --- video flow (optional) ---
|
// --- video flow (optional) ---
|
||||||
bool has_video = config().contains("flow_id");
|
bool has_video = config().contains("video_flow_id");
|
||||||
|
|
||||||
int width = 1920;
|
int width = 1920;
|
||||||
int height = 1080;
|
int height = 1080;
|
||||||
@@ -45,7 +45,7 @@ class NDIOutNode : public dmf::NodeBase {
|
|||||||
uint32_t video_stride = 0;
|
uint32_t video_stride = 0;
|
||||||
|
|
||||||
if (has_video) {
|
if (has_video) {
|
||||||
const auto flow_info = config().at("flow_id");
|
const auto flow_info = config().at("video_flow_id");
|
||||||
flow_id = flow_info.at("id").get<std::string>();
|
flow_id = flow_info.at("id").get<std::string>();
|
||||||
width = flow_info.value("width", 1920);
|
width = flow_info.value("width", 1920);
|
||||||
height = flow_info.value("height", 1080);
|
height = flow_info.value("height", 1080);
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
"edges": [
|
"edges": [
|
||||||
{
|
{
|
||||||
"from": "videoin", "from_port": "video_flow_id",
|
"from": "videoin", "from_port": "video_flow_id",
|
||||||
"to": "ndiout", "to_port": "flow_id",
|
"to": "ndiout", "to_port": "video_flow_id",
|
||||||
"format": { "kind": "video", "width": 1920, "height": 1080, "fps_num": 25, "fps_den": 1 }
|
"format": { "kind": "video", "width": 1920, "height": 1080, "fps_num": 25, "fps_den": 1 }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user