mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-13 17:27:21 -05:00
TIME: Fix printFrameSync Oopsie; NULL PTR on Debug symbolfile;
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user