diff options
-rw-r--r-- | src/pulse/stream.c | 4 | ||||
-rw-r--r-- | src/pulse/stream.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pulse/stream.c b/src/pulse/stream.c index 52b10cd44..e32dd0084 100644 --- a/src/pulse/stream.c +++ b/src/pulse/stream.c @@ -2740,7 +2740,7 @@ const char *pa_stream_get_device_name(const pa_stream *s) { return s->device_name; } -int pa_stream_is_suspended(pa_stream *s) { +int pa_stream_is_suspended(const pa_stream *s) { pa_assert(s); pa_assert(PA_REFCNT_VALUE(s) >= 1); @@ -2752,7 +2752,7 @@ int pa_stream_is_suspended(pa_stream *s) { return s->suspended; } -int pa_stream_is_corked(pa_stream *s) { +int pa_stream_is_corked(const pa_stream *s) { pa_assert(s); pa_assert(PA_REFCNT_VALUE(s) >= 1); diff --git a/src/pulse/stream.h b/src/pulse/stream.h index 08adc9937..89a8924c4 100644 --- a/src/pulse/stream.h +++ b/src/pulse/stream.h @@ -380,11 +380,11 @@ const char *pa_stream_get_device_name(const pa_stream *s); * been suspended. This will return 0 if not, and a negative value on * error. This function will return with -PA_ERR_NOTSUPPORTED when the * server is older than 0.9.8. \since 0.9.8 */ -int pa_stream_is_suspended(pa_stream *s); +int pa_stream_is_suspended(const pa_stream *s); /** Return 1 if the this stream has been corked. This will return 0 if * not, and a negative value on error. \since 0.9.11 */ -int pa_stream_is_corked(pa_stream *s); +int pa_stream_is_corked(const pa_stream *s); /** Connect the stream to a sink. It is strongly recommended to pass * NULL in both \a dev and \a volume and to set neither |