From 04439446eec8ba884addc7ab3a1ba816ee42f223 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 5 Feb 2018 15:29:49 +0100 Subject: Deprecate autorestart --- src/odr-audioenc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/odr-audioenc.cpp') 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; -- cgit v1.2.3