changeset 24831:8fe8b0d9deec

Remove assert. Not only are they no help at all and proper checks should be added if desired, also assert.h is not included so compilation may fail.
author reimar
date Sat, 27 Oct 2007 06:47:35 +0000
parents 31efcf6a10d0
children e0ae2a33857a
files stream/ai_alsa1x.c
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/stream/ai_alsa1x.c	Sat Oct 27 04:46:01 2007 +0000
+++ b/stream/ai_alsa1x.c	Sat Oct 27 06:47:35 2007 +0000
@@ -91,16 +91,11 @@
 
     snd_pcm_sw_params_current(ai->alsa.handle, swparams);
     err = snd_pcm_sw_params_set_sleep_min(ai->alsa.handle, swparams,0);
-    assert(err >= 0);
     err = snd_pcm_sw_params_set_avail_min(ai->alsa.handle, swparams, ai->alsa.chunk_size);
-    assert(err >= 0);
 
     err = snd_pcm_sw_params_set_start_threshold(ai->alsa.handle, swparams, 0);
-    assert(err >= 0);
     err = snd_pcm_sw_params_set_stop_threshold(ai->alsa.handle, swparams, buffer_size);
-    assert(err >= 0);
 
-    assert(err >= 0);
     if (snd_pcm_sw_params(ai->alsa.handle, swparams) < 0) {
 	mp_msg(MSGT_TV, MSGL_ERR, MSGTR_MPDEMUX_AIALSA_CannotInstallSWParams);
 	snd_pcm_sw_params_dump(swparams, ai->alsa.log);