fix logic

This commit is contained in:
2026-04-28 16:23:10 +02:00
parent 48166a19b4
commit c3f3b31243
2 changed files with 8 additions and 4 deletions
+5 -1
View File
@@ -169,9 +169,13 @@ int main(int argc, char **argv) {
RDSModulator rdsModulator = {0};
RDSEncoder rdsEncoder = {0};
if(init_lua(&rdsEncoder) == 1) {
uint8_t err = init_lua(&rdsEncoder);
if(err == 1) {
fprintf(stderr, "Could not create lua state - not enough memory\n");
goto exit;
} else if (err == 2) {
fprintf(stderr, "Could not load lua script file\n");
goto exit;
}
init_rds_modulator(&rdsModulator, &rdsEncoder, config.num_streams);
init_rds_encoder(&rdsEncoder);