From b2210cd6984e882016bcc72964b1e74a375e2e60 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sat, 25 Aug 2018 10:22:55 +0200 Subject: Radio: Abort, if no RX sink is specified --- src/radio/radio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 */ -- cgit v1.2.3