stream: pa_stream_get_monitor_stream: constify
authorLyndon Brown <jnqnfe@gmail.com>
Sun, 27 May 2018 05:08:16 +0000 (06:08 +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 b23323d..73743cb 100644 (file)
@@ -2915,7 +2915,7 @@ int pa_stream_set_monitor_stream(pa_stream *s, uint32_t sink_input_idx) {
     return 0;
 }
 
-uint32_t pa_stream_get_monitor_stream(pa_stream *s) {
+uint32_t pa_stream_get_monitor_stream(const pa_stream *s) {
     pa_assert(s);
     pa_assert(PA_REFCNT_VALUE(s) >= 1);
 
index 667af85..7913f7f 100644 (file)
@@ -801,7 +801,7 @@ int pa_stream_set_monitor_stream(pa_stream *s, uint32_t sink_input_idx);
 /** Return the sink input index previously set with
  * pa_stream_set_monitor_stream(). Returns PA_INVALID_INDEX
  * on failure. \since 0.9.11 */
-uint32_t pa_stream_get_monitor_stream(pa_stream *s);
+uint32_t pa_stream_get_monitor_stream(const pa_stream *s);
 
 PA_C_DECL_END