From 4ccbc133b9dfd469b8a6fec0f0104af77a26980b Mon Sep 17 00:00:00 2001 From: Alexandros Theodotou Date: Wed, 10 Mar 2021 23:53:43 +0000 Subject: [PATCH] remove #if 1 --- src/ad_ffmpeg.c | 2 -- src/ad_minimp3.c | 9 --------- src/ad_soundfile.c | 9 --------- 3 files changed, 20 deletions(-) diff --git a/src/ad_ffmpeg.c b/src/ad_ffmpeg.c index 4dd7ec7..513108c 100644 --- a/src/ad_ffmpeg.c +++ b/src/ad_ffmpeg.c @@ -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) { diff --git a/src/ad_minimp3.c b/src/ad_minimp3.c index f6e7a9c..498bf61 100644 --- a/src/ad_minimp3.c +++ b/src/ad_minimp3.c @@ -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 */ diff --git a/src/ad_soundfile.c b/src/ad_soundfile.c index 8c1d30d..d5210b0 100644 --- a/src/ad_soundfile.c +++ b/src/ad_soundfile.c @@ -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 */