mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
format: Const-ify some parameters
This commit is contained in:
parent
49b10ba694
commit
a3a0042144
2 changed files with 4 additions and 4 deletions
|
|
@ -70,11 +70,11 @@ void pa_format_info_free2(pa_format_info *f, void *userdata) {
|
|||
pa_format_info_free(f);
|
||||
}
|
||||
|
||||
int pa_format_info_valid(pa_format_info *f) {
|
||||
int pa_format_info_valid(const pa_format_info *f) {
|
||||
return (f->encoding >= 0 && f->encoding < PA_ENCODING_MAX && f->plist != NULL);
|
||||
}
|
||||
|
||||
int pa_format_info_is_pcm(pa_format_info *f) {
|
||||
int pa_format_info_is_pcm(const pa_format_info *f) {
|
||||
return f->encoding == PA_ENCODING_PCM;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue