TV: Fix case where no SDR nor wave file has been selected
This commit is contained in:
parent
5e14471eb6
commit
91b48c09de
|
@ -288,7 +288,12 @@ static void tx_bas(sample_t *sample_bas, __attribute__((__unused__)) sample_t *s
|
||||||
float *buff = NULL;
|
float *buff = NULL;
|
||||||
void *sdr = NULL;
|
void *sdr = NULL;
|
||||||
int latspl = samplerate * latency / 1000;
|
int latspl = samplerate * latency / 1000;
|
||||||
float *sendbuff;
|
float *sendbuff = NULL;
|
||||||
|
|
||||||
|
if ((sdr_config->uhd == 0 && sdr_config->soapy == 0)) {
|
||||||
|
fprintf(stderr, "You must choose SDR API you want: --sdr-uhd or --sdr-soapy or -w <file> to generate wave file.\n");
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
sendbuff = calloc(latspl * 2, sizeof(*sendbuff));
|
sendbuff = calloc(latspl * 2, sizeof(*sendbuff));
|
||||||
if (!sendbuff) {
|
if (!sendbuff) {
|
||||||
|
|
Loading…
Reference in New Issue