mirror of https://github.com/mpv-player/mpv
Documentation for waitop function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25411 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
88a2c17be2
commit
fd77e65860
|
@ -91,6 +91,12 @@ static void success_cb(pa_stream *s, int success, void *userdata) {
|
||||||
pa_threaded_mainloop_signal(mainloop, 0);
|
pa_threaded_mainloop_signal(mainloop, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief waits for a pulseaudio operation to finish, frees it and
|
||||||
|
* unlocks the mainloop
|
||||||
|
* \param op operation to wait for
|
||||||
|
* \return 1 if operation has finished normally (DONE state), 0 otherwise
|
||||||
|
*/
|
||||||
static int waitop(pa_operation *op) {
|
static int waitop(pa_operation *op) {
|
||||||
pa_operation_state_t state;
|
pa_operation_state_t state;
|
||||||
if (!op) return 0;
|
if (!op) return 0;
|
||||||
|
|
Loading…
Reference in New Issue