From 96f586678f15568328b3d2864d17ae5dd70dbe9d Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 19 Jul 2023 12:46:40 +0200 Subject: [PATCH] Fix MistProcMKVExec track masking for both source and target --- src/process/process_exec.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/process/process_exec.cpp b/src/process/process_exec.cpp index 296aa747..af78e03f 100644 --- a/src/process/process_exec.cpp +++ b/src/process/process_exec.cpp @@ -69,6 +69,9 @@ namespace Mist{ pStat["proc_status_update"]["sink"] = streamName; pStat["proc_status_update"]["source"] = opt["source"]; } + if (opt.isMember("target_mask") && !opt["target_mask"].isNull() && opt["target_mask"].asString() != ""){ + DTSC::trackValidDefault = opt["target_mask"].asInt(); + } } bool needsLock(){return false;} bool isSingular(){return false;} @@ -107,7 +110,7 @@ namespace Mist{ OutEBML::dropTrack(trackId, reason, probablyBad); } void sendHeader(){ - if (opt["masksource"].asBool()){ + if (opt["source_mask"].asBool()){ for (std::map::iterator ti = userSelect.begin(); ti != userSelect.end(); ++ti){ if (ti->first == INVALID_TRACK_ID){continue;} INFO_MSG("Masking source track %zu", ti->first);