mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 22:40:30 +00:00
Disable keyboard control if stdin is not tty
This commit is contained in:
@@ -906,6 +906,10 @@ int main(int argc, char *argv[])
|
||||
printf("Video FEC : %s\n", requested_video_fec);
|
||||
printf("\n");
|
||||
|
||||
if (!isatty(0)) {
|
||||
disable_key_control = true;
|
||||
}
|
||||
|
||||
if (strcmp("none", audio_recv) != 0) {
|
||||
audio_rxtx_mode |= MODE_RECEIVER;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user