mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
add a few more gcc warning flags and fix quite a few problems found by doing so
This commit is contained in:
parent
047eb52b52
commit
b7026bf248
99 changed files with 810 additions and 776 deletions
|
|
@ -170,10 +170,10 @@ static int sink_input_pop_cb(pa_sink_input *i, size_t length, pa_memchunk *chunk
|
|||
|
||||
if (u->readf_function) {
|
||||
fs = pa_frame_size(&i->sample_spec);
|
||||
n = u->readf_function(u->sndfile, p, length/fs);
|
||||
n = u->readf_function(u->sndfile, p, (sf_count_t) (length/fs));
|
||||
} else {
|
||||
fs = 1;
|
||||
n = sf_read_raw(u->sndfile, p, length);
|
||||
n = sf_read_raw(u->sndfile, p, (sf_count_t) length);
|
||||
}
|
||||
|
||||
pa_memblock_release(tchunk.memblock);
|
||||
|
|
@ -186,7 +186,7 @@ static int sink_input_pop_cb(pa_sink_input *i, size_t length, pa_memchunk *chunk
|
|||
break;
|
||||
}
|
||||
|
||||
tchunk.length = n * fs;
|
||||
tchunk.length = (size_t) n * fs;
|
||||
|
||||
pa_memblockq_push(u->memblockq, &tchunk);
|
||||
pa_memblock_unref(tchunk.memblock);
|
||||
|
|
@ -310,8 +310,8 @@ int pa_play_file(
|
|||
break;
|
||||
}
|
||||
|
||||
ss.rate = sfinfo.samplerate;
|
||||
ss.channels = sfinfo.channels;
|
||||
ss.rate = (uint32_t) sfinfo.samplerate;
|
||||
ss.channels = (uint8_t) sfinfo.channels;
|
||||
|
||||
if (!pa_sample_spec_valid(&ss)) {
|
||||
pa_log("Unsupported sample format in file %s", fname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue