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 6fde0a5..a33cd2e 100644
--- a/src/odr-audioenc.cpp
+++ b/src/odr-audioenc.cpp
@@ -636,7 +636,11 @@ int main(int argc, char *argv[])
if (jack_name) num_inputs++;
if (vlc_uri != "") num_inputs++;
- if (num_inputs > 1) {
+ if (num_inputs == 0) {
+ fprintf(stderr, "No input defined!\n");
+ return 1;
+ }
+ else if (num_inputs > 1) {
fprintf(stderr, "You must define only one possible input, not several!\n");
return 1;
}