Changeset 4b9481f9 for src/io


Ignore:
Timestamp:
Dec 12, 2018, 3:27:37 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
Children:
be63940
Parents:
be99a7c
Message:

[io] abort sink_vorbis_do on error, remove unused variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_vorbis.c

    rbe99a7c r4b9481f9  
    3030#include <errno.h> // errno
    3131#include <time.h> // time
    32 
    33 #define VORBIS_READSIZE 1024
    3432
    3533struct _aubio_sink_vorbis_t {
     
    225223  } else if (!buffer) {
    226224    AUBIO_WRN("sink_vorbis: failed fetching buffer of size %d\n", write);
     225    return;
    227226  } else {
    228227    for (c = 0; c < s->channels; c++) {
     
    248247  } else if (!buffer) {
    249248    AUBIO_WRN("sink_vorbis: failed fetching buffer of size %d\n", write);
     249    return;
    250250  } else {
    251251    for (c = 0; c < s->channels; c++) {
Note: See TracChangeset for help on using the changeset viewer.