diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-12-07 15:34:29 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-12-07 15:34:29 +0000 |
commit | c8fdff20285b59cd892297317572fbb4c3633f78 (patch) | |
tree | 102be6141b635eb2bff16358ca13b79924b211f4 /src/xine-engine/audio_out.c | |
parent | a2dcf860b2777e530646abd00202c3fb5b3a5a81 (diff) | |
download | xine-lib-c8fdff20285b59cd892297317572fbb4c3633f78.tar.gz xine-lib-c8fdff20285b59cd892297317572fbb4c3633f78.tar.bz2 |
get rid of XINE_{ASSERT,ABORT} and useless xine_print_trace (useless). Replace XINE_ASSERT by _x_assert, which works exaclty as assert, except that it still warns with NDEBUG defined (but don't abort). Fix missuning of assert(0), which isn't safe, abort is abort, assert is for debugging purpose only, so all assert(0) has been converted to abort() alls. In osd_preload_fonts(): alloc needed memory chunk. Define NDEBUG in CFLAGS, for non DEBUG build only.
CVS patchset: 5860
CVS date: 2003/12/07 15:34:29
Diffstat (limited to 'src/xine-engine/audio_out.c')
-rw-r--r-- | src/xine-engine/audio_out.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 6bd3ea0eb..8797dd3d6 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.155 2003/12/05 15:55:04 f1rmb Exp $ + * $Id: audio_out.c,v 1.156 2003/12/07 15:34:30 f1rmb Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe <andy@alsaplayer.org> @@ -300,7 +300,7 @@ static void fifo_append_int (audio_fifo_t *fifo, /* buf->next = NULL; */ - XINE_ASSERT(!buf->next, "Next audio buffer is not NULL."); + _x_assert(!buf->next); if (!fifo->first) { fifo->first = buf; @@ -1067,7 +1067,7 @@ static void *ao_loop (void *this_gen) { #endif lprintf ("loop: writing %d samples to sound device\n", out_buf->num_frames); - + pthread_mutex_lock( &this->driver_lock ); result = this->driver->write (this->driver, out_buf->mem, out_buf->num_frames ); pthread_mutex_unlock( &this->driver_lock ); @@ -1077,8 +1077,10 @@ static void *ao_loop (void *this_gen) { * Maybe we should pause the stream until the USB device is plugged in again. * Return values 0 happen even if usb not unplugged, so needs further investigation. */ - XINE_ASSERT(result >= 0, "write to sound card failed. Was a USB device unplugged?"); + xprintf(this->xine, XINE_VERBOSITY_LOG, _("write to sound card failed. Was a USB device unplugged ?\n")); + _x_assert(result >= 0); + lprintf ("loop: next buf from fifo\n"); fifo_append (this->free_fifo, in_buf); in_buf = NULL; |