diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/odr-audioenc.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/odr-audioenc.cpp b/src/odr-audioenc.cpp index f4cf01e..9dd10ba 100644 --- a/src/odr-audioenc.cpp +++ b/src/odr-audioenc.cpp @@ -1523,6 +1523,12 @@ int main(int argc, char *argv[]) } } - return audio_enc.run(); + try { + return audio_enc.run(); + } + catch (const std::runtime_error& e) { + fprintf(stderr, "ODR-AudioEnc failed to start: %s\n", e.what()); + return 1; + } } |