summaryrefslogtreecommitdiffstats
path: root/src/odr-audioenc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/odr-audioenc.cpp')
-rw-r--r--src/odr-audioenc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/odr-audioenc.cpp b/src/odr-audioenc.cpp
index 9053eec..da9b93a 100644
--- a/src/odr-audioenc.cpp
+++ b/src/odr-audioenc.cpp
@@ -222,7 +222,6 @@ void usage(const char* name)
" (default: /tmp/pad.fifo).\n"
" -l, --level Show peak audio level indication.\n"
" -s, --silence=TIMEOUT Abort encoding after TIMEOUT seconds of silence.\n"
- " -R, --restart Automatically restart input on fault, up to five times.\n"
"\n"
"Only the tcp:// zeromq transport has been tested until now,\n"
" but epgm://, pgm:// and ipc:// are also accepted\n"
@@ -975,6 +974,11 @@ int main(int argc, char *argv[])
unsigned char pad_buf[padlen + 1];
+ if (restart_on_fault) {
+ fprintf(stderr, "Autorestart has been deprecated and will be removed in the future!\n");
+ this_thread::sleep_for(chrono::seconds(2));
+ }
+
fprintf(stderr, "Starting encoding\n");
int retval = 0;