Skip to content

Commit 96f5866

Browse files
committed
Fix MistProcMKVExec track masking for both source and target
1 parent 54cee36 commit 96f5866

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/process/process_exec.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ namespace Mist{
6969
pStat["proc_status_update"]["sink"] = streamName;
7070
pStat["proc_status_update"]["source"] = opt["source"];
7171
}
72+
if (opt.isMember("target_mask") && !opt["target_mask"].isNull() && opt["target_mask"].asString() != ""){
73+
DTSC::trackValidDefault = opt["target_mask"].asInt();
74+
}
7275
}
7376
bool needsLock(){return false;}
7477
bool isSingular(){return false;}
@@ -107,7 +110,7 @@ namespace Mist{
107110
OutEBML::dropTrack(trackId, reason, probablyBad);
108111
}
109112
void sendHeader(){
110-
if (opt["masksource"].asBool()){
113+
if (opt["source_mask"].asBool()){
111114
for (std::map<size_t, Comms::Users>::iterator ti = userSelect.begin(); ti != userSelect.end(); ++ti){
112115
if (ti->first == INVALID_TRACK_ID){continue;}
113116
INFO_MSG("Masking source track %zu", ti->first);

0 commit comments

Comments
 (0)