1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-27 01:53:32 +00:00

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.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24859 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-10-27 06:47:35 +00:00
parent a8c696d961
commit 2d84ff3489

View File

@ -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);