stream: pa_stream_get_format_info: constify

This commit is contained in:
Lyndon Brown 2018-05-28 00:03:14 +01:00 committed by Arun Raghavan
parent c16b842ac0
commit 6f2a70191d
2 changed files with 2 additions and 2 deletions

View file

@ -2570,7 +2570,7 @@ const pa_channel_map* pa_stream_get_channel_map(pa_stream *s) {
return &s->channel_map;
}
const pa_format_info* pa_stream_get_format_info(pa_stream *s) {
const pa_format_info* pa_stream_get_format_info(const pa_stream *s) {
pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1);

View file

@ -751,7 +751,7 @@ const pa_sample_spec* pa_stream_get_sample_spec(pa_stream *s);
const pa_channel_map* pa_stream_get_channel_map(pa_stream *s);
/** Return a pointer to the stream's format. \since 1.0 */
const pa_format_info* pa_stream_get_format_info(pa_stream *s);
const pa_format_info* pa_stream_get_format_info(const pa_stream *s);
/** Return the per-stream server-side buffer metrics of the
* stream. Only valid after the stream has been connected successfully