diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/audio_out.c | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index e533df68a..1475a10c2 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.204 2006/09/09 17:13:16 dgp85 Exp $ + * $Id: audio_out.c,v 1.205 2006/09/26 01:13:18 dgp85 Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe <andy@alsaplayer.org> @@ -422,26 +422,10 @@ static void fifo_wait_empty (audio_fifo_t *fifo) { static void write_pause_burst(aos_t *this, uint32_t num_frames) { + /* Audio ES Channel empty, wait for DD Decoder or pause */ + static const unsigned short sbuf[4096] = + { 0xf872, 0x4e1f, 0x0003, 0x0020, 0x0, }; - int error = 0; - unsigned char buf[8192]; - unsigned short *sbuf = (unsigned short *)&buf[0]; - - sbuf[0] = 0xf872; - sbuf[1] = 0x4e1f; - - if (error == 0) - /* Audio ES Channel empty, wait for DD Decoder or pause */ - sbuf[2] = 0x0003; - else - /* user stop, skip or error */ - sbuf[2] = 0x0103; - - sbuf[3] = 0x0020; - sbuf[4] = 0x0000; - sbuf[5] = 0x0000; - - memset(&sbuf[6], 0, 6144 - 96); while (num_frames > 1536) { pthread_mutex_lock( &this->driver_lock ); if(this->driver_open) |