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 | |
parent | d14b4e71f80227bc193a28e0f50c6ee007f3d050 (diff) | |
download | ODR-AudioEnc-04439446eec8ba884addc7ab3a1ba816ee42f223.tar.gz ODR-AudioEnc-04439446eec8ba884addc7ab3a1ba816ee42f223.tar.bz2 ODR-AudioEnc-04439446eec8ba884addc7ab3a1ba816ee42f223.zip |
Deprecate autorestart
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | src/odr-audioenc.cpp | 6 |
3 files changed, 14 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2018-01-29: Matthias P. Braendli <matthias@mpb.li> + (upcoming version): + Deprecate -R option. + Allow usage of zeromq IPC socket. + 2017-11-18: Matthias P. Braendli <matthias@mpb.li> (v2.2.0): Add a decoder option for loopback testing. @@ -185,10 +185,11 @@ odr-audioenc returns: * 4 it the ZeroMQ send failed * 5 if the input had a fault -You can use the *-R* option to get ODR-AudioEnc to restart the input -automatically up to five times after a fault. As this does not guarantee that +The *-R* option to get ODR-AudioEnc to restart the input +automatically has been deprecated. As this feature does not guarantee that the odr-audioenc process will never die, running it under a process supervisor -is recommended regardless of this feature being enabled or not. +is recommended regardless of this feature being enabled or not. It will be removed +in a future version. Known Limitations 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; |