mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
stream: pa_stream_is_[suspended|corked]: constify
This commit is contained in:
parent
22f2a445a2
commit
d1f708ecfc
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue