mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
fix a couple of issues I found when compiling polypaudio with gcc 2.95
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@754 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
60008cb115
commit
746adcfed5
13 changed files with 15 additions and 13 deletions
|
|
@ -461,8 +461,9 @@ int pa__init(pa_core *c, pa_module*m) {
|
|||
* Without this snippet, poll will never register the fd as ready.
|
||||
*/
|
||||
if (u->source) {
|
||||
char buf[u->sample_size];
|
||||
char *buf = pa_xnew(char, u->sample_size);
|
||||
read(u->fd, buf, u->sample_size);
|
||||
pa_xfree(buf);
|
||||
}
|
||||
|
||||
/* Read mixer settings */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue