mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-18 06:59:57 -05:00
fix a couple of compiler warnings
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1768 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
2dbe137daf
commit
4c31ff9b45
7 changed files with 11 additions and 10 deletions
|
|
@ -439,8 +439,8 @@ static record_stream* record_stream_new(
|
|||
const pa_sample_spec *ss,
|
||||
const pa_channel_map *map,
|
||||
const char *name,
|
||||
size_t *maxlength,
|
||||
size_t fragment_size,
|
||||
uint32_t *maxlength,
|
||||
uint32_t fragment_size,
|
||||
int corked) {
|
||||
|
||||
record_stream *s;
|
||||
|
|
|
|||
|
|
@ -383,7 +383,8 @@ finish:
|
|||
}
|
||||
}
|
||||
|
||||
errno = saved_errno;
|
||||
if (r < 0)
|
||||
errno = saved_errno;
|
||||
|
||||
return r;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ int pa_sound_file_load(
|
|||
ptr = pa_memblock_acquire(chunk->memblock);
|
||||
|
||||
if ((readf_function && readf_function(sf, ptr, sfinfo.frames) != sfinfo.frames) ||
|
||||
(!readf_function && sf_read_raw(sf, ptr, l) != l)) {
|
||||
(!readf_function && sf_read_raw(sf, ptr, l) != (sf_count_t) l)) {
|
||||
pa_log("Premature file end");
|
||||
goto finish;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue