diff options
author | Alexander E. Patrakov <patrakov@gmail.com> | 2014-09-14 00:30:21 +0600 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2014-09-13 21:05:33 +0200 |
commit | f803a3394a7b7390087be3cc192b2895f9e960ea (patch) | |
tree | da2274b8b91b9204340f56480ca39b64862fab8c | |
parent | 6db0fe495ef1db1fd8f0ed791996f834665a926b (diff) | |
download | alsa-lib-f803a3394a7b7390087be3cc192b2895f9e960ea.tar.gz |
pcm, file: don't recurse in the rewindable and forwardable callbacks
Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | src/pcm/pcm_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcm/pcm_file.c b/src/pcm/pcm_file.c index a0b8bf41..5541a939 100644 --- a/src/pcm/pcm_file.c +++ b/src/pcm/pcm_file.c @@ -454,7 +454,7 @@ static int snd_pcm_file_drain(snd_pcm_t *pcm) static snd_pcm_sframes_t snd_pcm_file_rewindable(snd_pcm_t *pcm) { snd_pcm_file_t *file = pcm->private_data; - snd_pcm_sframes_t res = snd_pcm_rewindable(pcm); + snd_pcm_sframes_t res = snd_pcm_rewindable(file->gen.slave); snd_pcm_sframes_t n = snd_pcm_bytes_to_frames(pcm, file->wbuf_used_bytes); if (res > n) res = n; @@ -482,7 +482,7 @@ static snd_pcm_sframes_t snd_pcm_file_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t f static snd_pcm_sframes_t snd_pcm_file_forwardable(snd_pcm_t *pcm) { snd_pcm_file_t *file = pcm->private_data; - snd_pcm_sframes_t res = snd_pcm_forwardable(pcm); + snd_pcm_sframes_t res = snd_pcm_forwardable(file->gen.slave); snd_pcm_sframes_t n = snd_pcm_bytes_to_frames(pcm, file->wbuf_size_bytes - file->wbuf_used_bytes); if (res > n) res = n; |