Changeset 9938200


Ignore:
Timestamp:
Mar 17, 2017, 6:29:12 PM (2 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler
Children:
0fdab5b
Parents:
389f903
Message:

src/io/source_avcodec.c: simplify new_ failure recovery

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    r389f903 r9938200  
    164164    av_strerror (err, errorstr, sizeof(errorstr));
    165165    AUBIO_ERR("source_avcodec: Failed opening %s (%s)\n", s->path, errorstr);
    166     goto beach_streamopts;
     166    goto beach;
    167167  }
    168168
     
    299299  return s;
    300300
    301 beach_streamopts:
    302   av_dict_free(&streamopts);
    303301beach:
     302  if (streamopts != 0) av_dict_free(&streamopts);
    304303  //AUBIO_ERR("can not read %s at samplerate %dHz with a hop_size of %d\n",
    305304  //    s->path, s->samplerate, s->hop_size);
Note: See TracChangeset for help on using the changeset viewer.