diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-02-05 15:29:49 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-02-05 15:30:19 +0100 |
commit | 04439446eec8ba884addc7ab3a1ba816ee42f223 (patch) | |
tree | d7aeca39690e9cfc857830924ef2418c0aba19df /src | |
parent | d14b4e71f80227bc193a28e0f50c6ee007f3d050 (diff) | |
download | ODR-AudioEnc-04439446eec8ba884addc7ab3a1ba816ee42f223.tar.gz ODR-AudioEnc-04439446eec8ba884addc7ab3a1ba816ee42f223.tar.bz2 ODR-AudioEnc-04439446eec8ba884addc7ab3a1ba816ee42f223.zip |
Deprecate autorestart
Diffstat (limited to 'src')
-rw-r--r-- | src/odr-audioenc.cpp | 6 |
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; |