From: Adam Miartus Date: Mon, 24 Jun 2019 11:23:23 +0000 (+0200) Subject: pcm_file: remove double line X-Git-Tag: v1.2.1~45 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=7b1af71173f2d46c9b2044278f15107a80c11d32;p=alsa-lib.git pcm_file: remove double line snd_pcm_file_add_frames called two times by mistake, introduced in 2a800c0c4f259043c9217a4aa6a57afaf9f77477 Signed-off-by: Adam Miartus Signed-off-by: Takashi Iwai --- diff --git a/src/pcm/pcm_file.c b/src/pcm/pcm_file.c index ca8e0c80..11d0953d 100644 --- a/src/pcm/pcm_file.c +++ b/src/pcm/pcm_file.c @@ -613,7 +613,6 @@ static snd_pcm_sframes_t snd_pcm_file_readi(snd_pcm_t *pcm, void *buffer, snd_pc snd_pcm_areas_from_buf(pcm, areas, buffer); snd_pcm_file_areas_read_infile(pcm, areas, 0, frames); __snd_pcm_lock(pcm); - snd_pcm_file_add_frames(pcm, areas, 0, frames); if (snd_pcm_file_add_frames(pcm, areas, 0, frames) < 0) { __snd_pcm_unlock(pcm); return -EPIPE;