[MPlayer-cvslog] r24859 - trunk/stream/ai_alsa1x.c

reimar subversion at mplayerhq.hu
Sat Oct 27 08:47:36 CEST 2007


Author: reimar
Date: Sat Oct 27 08:47:35 2007
New Revision: 24859

Log:
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.


Modified:
   trunk/stream/ai_alsa1x.c

Modified: trunk/stream/ai_alsa1x.c
==============================================================================
--- trunk/stream/ai_alsa1x.c	(original)
+++ trunk/stream/ai_alsa1x.c	Sat Oct 27 08:47:35 2007
@@ -91,16 +91,11 @@ int ai_alsa_setup(audio_in_t *ai)
 
     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);



More information about the MPlayer-cvslog mailing list