Disable keyboard control if stdin is not tty

This commit is contained in:
Martin Pulec
2015-09-23 11:59:28 +02:00
parent 2626f17f5c
commit 3957eacbd1

View File

@@ -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;
}