Browse Source

remove #if 1

master
Alexandros Theodotou 2 years ago
parent
commit
4ccbc133b9
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 2
      src/ad_ffmpeg.c
  2. 9
      src/ad_minimp3.c
  3. 9
      src/ad_soundfile.c

2
src/ad_ffmpeg.c

@ -289,10 +289,8 @@ static ssize_t ad_read_ffmpeg(void *sf, float* d, size_t len) { @@ -289,10 +289,8 @@ static ssize_t ad_read_ffmpeg(void *sf, float* d, size_t len) {
dbg(2, " !!! sync buffer to seek. (diff:%i)", diff);
priv->m_tmpBufferStart+= diff*priv->codecContext->channels;
priv->m_tmpBufferLen -= diff*priv->codecContext->channels;
#if 1
memmove(priv->m_tmpBuffer, priv->m_tmpBufferStart, priv->m_tmpBufferLen);
priv->m_tmpBufferStart = priv->m_tmpBuffer;
#endif
priv->seek_frame=0;
priv->decoder_clock += diff;
} else if (data_size > 0) {

9
src/ad_minimp3.c

@ -182,21 +182,12 @@ static int ad_eval_minimp3(const char *f) @@ -182,21 +182,12 @@ static int ad_eval_minimp3(const char *f)
}
static const ad_plugin ad_minimp3 = {
#if 1
.eval = &ad_eval_minimp3,
.open = &ad_open_minimp3,
.close = &ad_close_minimp3,
.info = &ad_info_minimp3,
.seek = &ad_seek_minimp3,
.read = &ad_read_minimp3
#else
&ad_eval_null,
&ad_open_null,
&ad_close_null,
&ad_info_null,
&ad_seek_null,
&ad_read_null
#endif
};
/* dlopen handler */

9
src/ad_soundfile.c

@ -162,21 +162,12 @@ static int ad_eval_sndfile(const char *f) { @@ -162,21 +162,12 @@ static int ad_eval_sndfile(const char *f) {
}
static const ad_plugin ad_sndfile = {
#if 1
.eval = &ad_eval_sndfile,
.open = &ad_open_sndfile,
.close = &ad_close_sndfile,
.info = &ad_info_sndfile,
.seek = &ad_seek_sndfile,
.read = &ad_read_sndfile
#else
&ad_eval_null,
&ad_open_null,
&ad_close_null,
&ad_info_null,
&ad_seek_null,
&ad_read_null
#endif
};
/* dlopen handler */

Loading…
Cancel
Save