stream: pa_stream_get_context: constify
authorLyndon Brown <jnqnfe@gmail.com>
Sun, 27 May 2018 04:45:36 +0000 (05:45 +0100)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 21 Jun 2018 01:00:25 +0000 (06:30 +0530)
src/pulse/stream.c
src/pulse/stream.h

index 3df5259..d1ccfbc 100644 (file)
@@ -338,7 +338,7 @@ pa_stream_state_t pa_stream_get_state(const pa_stream *s) {
     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(PA_REFCNT_VALUE(s) >= 1);
 
index 2a904b9..4c52c31 100644 (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);
 
 /** 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
  * identified in the server with. This is useful with the