mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
fix segfault when recording with module-oss.c
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1506 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
eec2fbe623
commit
683fc4cef8
1 changed files with 1 additions and 1 deletions
|
|
@ -324,7 +324,7 @@ static int source_process_msg(pa_msgobject *o, int code, void *data, pa_memchunk
|
||||||
pa_log_info("Device doesn't support SNDCTL_DSP_GETISPACE: %s", pa_cstrerror(errno));
|
pa_log_info("Device doesn't support SNDCTL_DSP_GETISPACE: %s", pa_cstrerror(errno));
|
||||||
u->use_getispace = 0;
|
u->use_getispace = 0;
|
||||||
} else
|
} else
|
||||||
r = pa_bytes_to_usec(info.bytes, &u->sink->sample_spec);
|
r = pa_bytes_to_usec(info.bytes, &u->source->sample_spec);
|
||||||
}
|
}
|
||||||
|
|
||||||
*((pa_usec_t*) data) = r;
|
*((pa_usec_t*) data) = r;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue