stream: pa_stream_get_underflow_index: constify

This commit is contained in:
Lyndon Brown 2018-05-27 06:00:02 +01:00 committed by Arun Raghavan
parent 883421df03
commit c16b842ac0
2 changed files with 2 additions and 2 deletions

View file

@ -850,7 +850,7 @@ finish:
pa_context_unref(c); pa_context_unref(c);
} }
int64_t pa_stream_get_underflow_index(pa_stream *p) { int64_t pa_stream_get_underflow_index(const pa_stream *p) {
pa_assert(p); pa_assert(p);
return p->latest_underrun_at_index; return p->latest_underrun_at_index;
} }

View file

@ -602,7 +602,7 @@ void pa_stream_set_overflow_callback(pa_stream *p, pa_stream_notify_cb_t cb, voi
* known (e.g.\ if no underflow has occurred, or server is older than 1.0). * known (e.g.\ if no underflow has occurred, or server is older than 1.0).
* Can be used inside the underflow callback to get information about the current underflow. * Can be used inside the underflow callback to get information about the current underflow.
* (Only for playback streams) \since 1.0 */ * (Only for playback streams) \since 1.0 */
int64_t pa_stream_get_underflow_index(pa_stream *p); int64_t pa_stream_get_underflow_index(const pa_stream *p);
/** Set the callback function that is called when a buffer underflow happens. (Only for playback streams) */ /** Set the callback function that is called when a buffer underflow happens. (Only for playback streams) */
void pa_stream_set_underflow_callback(pa_stream *p, pa_stream_notify_cb_t cb, void *userdata); void pa_stream_set_underflow_callback(pa_stream *p, pa_stream_notify_cb_t cb, void *userdata);