stream: pa_stream_get_context: constify

This commit is contained in:
Lyndon Brown 2018-05-27 05:45:36 +01:00 committed by Arun Raghavan
parent 6ab533c7aa
commit 31eb433d7b
2 changed files with 2 additions and 2 deletions

View file

@ -338,7 +338,7 @@ pa_stream_state_t pa_stream_get_state(const pa_stream *s) {
return s->state; return s->state;
} }
pa_context* pa_stream_get_context(pa_stream *s) { pa_context* pa_stream_get_context(const pa_stream *s) {
pa_assert(s); pa_assert(s);
pa_assert(PA_REFCNT_VALUE(s) >= 1); pa_assert(PA_REFCNT_VALUE(s) >= 1);

View file

@ -345,7 +345,7 @@ pa_stream *pa_stream_ref(pa_stream *s);
pa_stream_state_t pa_stream_get_state(const pa_stream *p); pa_stream_state_t pa_stream_get_state(const pa_stream *p);
/** Return the context this stream is attached to. */ /** Return the context this stream is attached to. */
pa_context* pa_stream_get_context(pa_stream *p); pa_context* pa_stream_get_context(const pa_stream *p);
/** Return the sink input resp.\ source output index this stream is /** Return the sink input resp.\ source output index this stream is
* identified in the server with. This is useful with the * identified in the server with. This is useful with the