Skip to content

Commit 6f4eab2

Browse files
committed
Change default track output masking for raw tracks to include processes and exclude pushes
1 parent 06be8ca commit 6f4eab2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/process/process_av.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ namespace Mist{
100100
if (opt.isMember("target_mask") && !opt["target_mask"].isNull() && opt["target_mask"].asString() != ""){
101101
DTSC::trackValidDefault = opt["target_mask"].asInt();
102102
} else {
103-
DTSC::trackValidDefault = TRACK_VALID_EXT_HUMAN | TRACK_VALID_EXT_PUSH;
103+
if (codecOut == "UYVY" || codecOut == "YUYV" || codecOut == "PCM" || codecOut == "NV12") {
104+
DTSC::trackValidDefault = TRACK_VALID_EXT_HUMAN | TRACK_VALID_INT_PROCESS;
105+
} else {
106+
DTSC::trackValidDefault = TRACK_VALID_EXT_HUMAN | TRACK_VALID_EXT_PUSH;
107+
}
104108
}
105109
};
106110

0 commit comments

Comments
 (0)