aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2018-08-25 10:22:55 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2018-08-25 10:22:55 +0200
commitb2210cd6984e882016bcc72964b1e74a375e2e60 (patch)
treefeaaf7f5212f6bed0ab8659d6d3a9f0b25c3fe4a /src
parent881d4a9f72912f6446929ecbf78f52d9f0590cb6 (diff)
Radio: Abort, if no RX sink is specified
Diffstat (limited to 'src')
-rw-r--r--src/radio/radio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radio/radio.c b/src/radio/radio.c
index 48c8daf..a071fac 100644
--- a/src/radio/radio.c
+++ b/src/radio/radio.c
@@ -177,6 +177,10 @@ int radio_init(radio_t *radio, int latspl, int samplerate, const char *tx_wave_f
PDEBUG(DRADIO, DEBUG_ERROR, "No sound card support compiled in!\n");
goto error;
#endif
+ } else {
+ rc = -ENOTSUP;
+ PDEBUG(DRADIO, DEBUG_ERROR, "No RX audio sink is selected, try \"--audio-device default\"!\n");
+ goto error;
}
/* check if sample rate is too low */