diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-10 15:38:13 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-10 15:38:13 +0100 |
commit | bb17411643c5f02562676397f0105c315f7152e3 (patch) | |
tree | c2b980e926e1877b4554adf2598ee24a96b47cb9 /src | |
parent | 78da2894ea218ab714c8931fcdbd0aa014711382 (diff) | |
download | xine-lib-bb17411643c5f02562676397f0105c315f7152e3.tar.gz xine-lib-bb17411643c5f02562676397f0105c315f7152e3.tar.bz2 |
Don't use cork/uncork calls to handle pause and resume.
Diffstat (limited to 'src')
-rw-r--r-- | src/audio_out/audio_pulse_out.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/audio_out/audio_pulse_out.c b/src/audio_out/audio_pulse_out.c index f8132ce41..c2ed34263 100644 --- a/src/audio_out/audio_pulse_out.c +++ b/src/audio_out/audio_pulse_out.c @@ -576,32 +576,6 @@ static int ao_pulse_ctrl(ao_driver_t *this_gen, int cmd, ...) { switch (cmd) { - case AO_CTRL_PLAY_PAUSE: - _x_assert(this->stream && this->pa_class->context ); - - pthread_mutex_lock(&this->pa_class->pa_mutex); - if(pa_stream_get_state(this->stream) == PA_STREAM_READY) - wait_for_operation(this,pa_stream_cork(this->stream, 1, __xine_pa_stream_success_callback, this)); - pthread_mutex_unlock(&this->pa_class->pa_mutex); - - break; - - case AO_CTRL_PLAY_RESUME: - _x_assert(this->stream && this->pa_class->context); - - pthread_mutex_lock(&this->pa_class->pa_mutex); - if(pa_stream_get_state(this->stream) == PA_STREAM_READY) { - struct pa_operation *o2, *o1; - o1 = pa_stream_prebuf(this->stream, __xine_pa_stream_success_callback, this); - _x_assert(o1); wait_for_operation(this, o1); - - o2 = pa_stream_cork(this->stream, 0, __xine_pa_stream_success_callback, this); - _x_assert(o2); wait_for_operation(this,o2); - } - pthread_mutex_unlock(&this->pa_class->pa_mutex); - - break; - case AO_CTRL_FLUSH_BUFFERS: _x_assert(this->stream && this->pa_class->context); |