From 111c5a7f3161338352c6261085536523decc4943 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 9 May 2003 20:49:34 +0000 Subject: fix audio problems (it didn't turn it on again on fastforward->realtime transition) CVS patchset: 4808 CVS date: 2003/05/09 20:49:34 --- src/input/input_pvr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/input/input_pvr.c b/src/input/input_pvr.c index fa3eb6505..a79d0ce7d 100644 --- a/src/input/input_pvr.c +++ b/src/input/input_pvr.c @@ -38,7 +38,7 @@ * usage: * xine pvr:/\!\! * - * $Id: input_pvr.c,v 1.21 2003/05/09 17:57:15 miguelfreitas Exp $ + * $Id: input_pvr.c,v 1.22 2003/05/09 20:49:34 miguelfreitas Exp $ */ /************************************************************************** @@ -463,6 +463,7 @@ static void pvr_adjust_realtime_speed(pvr_input_plugin_t *this, fifo_buffer_t *f /* buffer is empty. pause it for a while */ this->scr_tunning = -2; /* marked as paused */ pvrscr_speed_tunning(this->scr, 0.0); + this->stream->audio_out->set_property( this->stream->audio_out, AO_PROP_PAUSED, 2 ); #ifdef SCRLOG printf("input_pvr: buffer empty, pausing playback\n" ); #endif @@ -474,6 +475,7 @@ static void pvr_adjust_realtime_speed(pvr_input_plugin_t *this, fifo_buffer_t *f this->scr_tunning = 0; pvrscr_speed_tunning(this->scr, 1.0 ); + this->stream->audio_out->set_property( this->stream->audio_out, AO_PROP_PAUSED, 0 ); #ifdef SCRLOG printf("input_pvr: resuming playback\n" ); #endif @@ -677,6 +679,7 @@ static int pvr_play_file(pvr_input_plugin_t *this, fifo_buffer_t *fifo, uint8_t if( speed > XINE_SPEED_NORMAL ) { this->stream->xine->clock->set_speed (this->stream->xine->clock, XINE_SPEED_NORMAL); + this->stream->audio_out->set_property( this->stream->audio_out, AO_PROP_PAUSED, 0 ); } if( this->play_fd != -1 ) { -- cgit v1.2.3