diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2003-05-24 10:53:47 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2003-05-24 10:53:47 +0000 |
commit | a3b647075ea387ddf8b54ce32d839af6eac9811a (patch) | |
tree | c906d79330ce141e7d24c322f9cacb7188790664 | |
parent | 7c0372883ffed77f7f9a071cdc24948caca74c0d (diff) | |
download | xine-lib-a3b647075ea387ddf8b54ce32d839af6eac9811a.tar.gz xine-lib-a3b647075ea387ddf8b54ce32d839af6eac9811a.tar.bz2 |
Remove pointless if statement
CVS patchset: 4918
CVS date: 2003/05/24 10:53:47
-rw-r--r-- | src/xine-engine/audio_out.c | 17 |
1 files 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 <andy@alsaplayer.org> @@ -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; } } |