From: Andre Noll Date: Thu, 20 Sep 2018 20:25:12 +0000 (+0200) Subject: afh: Minor simplification for afh_get_chunk(). X-Git-Tag: v0.6.3~41^2~4 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=30e16b04db8733e17fcf887508f2c33088eef2b6;p=paraslash.git afh: Minor simplification for afh_get_chunk(). The function already defines a shortcut for the pointer to the audio format handler, so use it. --- diff --git a/afh_common.c b/afh_common.c index dcb0b856..cb773bd6 100644 --- a/afh_common.c +++ b/afh_common.c @@ -313,7 +313,7 @@ __must_check int afh_get_chunk(long unsigned chunk_num, struct afh_info *afhi, if (ret < 0) return ret; } - ret = afl[audio_format_id].get_chunk(chunk_num, *afh_context, + ret = afh->get_chunk(chunk_num, *afh_context, buf, len); if (ret < 0) { afh->close(*afh_context);