diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-11-22 20:26:42 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-11-22 20:26:42 +0000 |
commit | 100a9d0edde1bf122b142b06345dc6601f56b360 (patch) | |
tree | 4778c811589cab8e94e496c12de7fa3e778807d4 | |
parent | bad391c58a1b52b95c693a7ab02fdc44027c3dd5 (diff) | |
download | xine-lib-100a9d0edde1bf122b142b06345dc6601f56b360.tar.gz xine-lib-100a9d0edde1bf122b142b06345dc6601f56b360.tar.bz2 |
reenables prebuffering when resuming (patch from Lennart)
CVS patchset: 7147
CVS date: 2004/11/22 20:26:42
-rw-r--r-- | src/audio_out/audio_polyp_out.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/audio_out/audio_polyp_out.c b/src/audio_out/audio_polyp_out.c index 5b38f4736..499358bc4 100644 --- a/src/audio_out/audio_polyp_out.c +++ b/src/audio_out/audio_polyp_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_polyp_out.c,v 1.3 2004/11/19 21:52:33 miguelfreitas Exp $ + * $Id: audio_polyp_out.c,v 1.4 2004/11/22 20:26:42 miguelfreitas Exp $ * * ao plugin for polypaudio: * http://0pointer.de/lennart/projects/polypaudio/ @@ -424,9 +424,15 @@ static int ao_polyp_ctrl(ao_driver_t *this_gen, int cmd, ...) { case AO_CTRL_PLAY_RESUME: assert(this->stream && this->context); - if(pa_stream_get_state(this->stream) == PA_STREAM_READY) - wait_for_operation(this,pa_stream_cork(this->stream, 0, NULL, NULL)); - wait_for_completion(this); + if(pa_stream_get_state(this->stream) == PA_STREAM_READY) { + struct pa_operation *o2, *o1; + o1 = pa_stream_prebuf(this->stream, NULL, NULL); + o2 = pa_stream_cork(this->stream, 0, NULL, NULL); + assert(o1 && o2); + wait_for_operation(this,o1); + wait_for_operation(this,o2); + wait_for_completion(this); + } break; case AO_CTRL_FLUSH_BUFFERS: |