stream: pa_stream_get_state: constify

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

View file

@ -331,7 +331,7 @@ pa_stream* pa_stream_ref(pa_stream *s) {
return s; return s;
} }
pa_stream_state_t pa_stream_get_state(pa_stream *s) { pa_stream_state_t pa_stream_get_state(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

@ -342,7 +342,7 @@ void pa_stream_unref(pa_stream *s);
pa_stream *pa_stream_ref(pa_stream *s); pa_stream *pa_stream_ref(pa_stream *s);
/** Return the current state of the stream. */ /** Return the current state of the stream. */
pa_stream_state_t pa_stream_get_state(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(pa_stream *p);