From a3b647075ea387ddf8b54ce32d839af6eac9811a Mon Sep 17 00:00:00 2001 From: James Stembridge Date: Sat, 24 May 2003 10:53:47 +0000 Subject: Remove pointless if statement CVS patchset: 4918 CVS date: 2003/05/24 10:53:47 --- src/xine-engine/audio_out.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 96c069072..9aee65d1b 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -17,7 +17,7 @@ * along with self program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_out.c,v 1.126 2003/05/24 10:49:06 jstembridge Exp $ + * $Id: audio_out.c,v 1.127 2003/05/24 10:53:47 jstembridge Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe @@ -400,17 +400,10 @@ static void write_pause_burst(aos_t *this, uint32_t num_frames) { memset(&sbuf[6], 0, 6144 - 96); while (num_frames > 1536) { - if(num_frames > 1536) { - pthread_mutex_lock( &this->driver_lock ); - this->driver->write(this->driver, sbuf, 1536); - pthread_mutex_unlock( &this->driver_lock ); - num_frames -= 1536; - } else { - pthread_mutex_lock( &this->driver_lock ); - this->driver->write(this->driver, sbuf, num_frames); - pthread_mutex_unlock( &this->driver_lock ); - num_frames = 0; - } + pthread_mutex_lock( &this->driver_lock ); + this->driver->write(this->driver, sbuf, 1536); + pthread_mutex_unlock( &this->driver_lock ); + num_frames -= 1536; } } -- cgit v1.2.3