TIME: Fix printFrameSync Oopsie; NULL PTR on Debug symbolfile;

This commit is contained in:
lwvmobile
2024-04-25 21:23:20 -04:00
parent db036f4dfc
commit 601a1ad2d1
2 changed files with 8 additions and 3 deletions

View File

@@ -29,11 +29,15 @@ printFrameSync (dsd_opts * opts, dsd_state * state, char *frametype, int offset,
fprintf (stderr,"%s ", timestr);
fprintf (stderr,"Sync: %s ", frametype);
}
if (opts->verbose > 2)
//oops, that made a nested if-if-if-if statement,
//causing a memory leak
// if (opts->verbose > 2)
//fprintf (stderr,"o: %4i ", offset);
if (opts->verbose > 1)
// if (opts->verbose > 1)
//fprintf (stderr,"mod: %s ", modulation);
if (opts->verbose > 2)
// if (opts->verbose > 2)
//fprintf (stderr,"g: %f ", state->aout_gain);
if (timestr != NULL)

View File

@@ -661,6 +661,7 @@ getSymbol (dsd_opts * opts, dsd_state * state, int have_sync)
//in debug mode, re-run .bin files over and over (look for memory leaks, etc)
if (state->debug_mode == 1)
{
opts->symbolfile = NULL;
opts->symbolfile = fopen(opts->audio_in_dev, "r");
opts->audio_in_type = 4; //symbol capture bin files
}