OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a0f281
)
Fix segfault
author
Takashi Iwai
<tiwai@suse.de>
Tue, 19 Apr 2005 16:11:26 +0000
(16:11 +0000)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 19 Apr 2005 16:11:26 +0000
(16:11 +0000)
Fix segfault (occuring when buffer/period sizes are aligned).
src/pcm/pcm_rate.c
patch
|
blob
|
history
diff --git
a/src/pcm/pcm_rate.c
b/src/pcm/pcm_rate.c
index
0b725b5
..
4c8fb2e
100644
(file)
--- a/
src/pcm/pcm_rate.c
+++ b/
src/pcm/pcm_rate.c
@@
-573,9
+573,11
@@
static int snd_pcm_rate_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params)
SNDMSG("rate plugin already in use");
return -EBUSY;
}
+#if 0
if ((buffer_size / period_size) * period_size == buffer_size &&
(slave->buffer_size / slave->period_size) * slave->period_size == slave->buffer_size)
return 0;
+#endif
rate->pareas = malloc(2 * channels * sizeof(*rate->pareas));
if (rate->pareas == NULL)
return -ENOMEM;