Update of /cvsroot/alsa/alsa-lib/src/pcm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9361
Modified Files:
pcm_plug.c
Log Message:
assert -> return error code in hw_params
Index: pcm_plug.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm_plug.c,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -r1.125 -r1.126
--- pcm_plug.c 8 Feb 2004 10:20:03 -0000 1.125
+++ pcm_plug.c 19 Apr 2004 13:24:19 -0000 1.126
@@ -877,11 +877,14 @@
int err;
err = snd_pcm_plug_hw_refine_sprepare(pcm, &sparams);
- assert(err >= 0);
+ if (err < 0)
+ return err;
err = snd_pcm_plug_hw_refine_schange(pcm, params, &sparams);
- assert(err >= 0);
+ if (err < 0)
+ return err;
err = snd_pcm_hw_refine_soft(slave, &sparams);
- assert(err >= 0);
+ if (err < 0)
+ return err;
INTERNAL(snd_pcm_hw_params_get_access)(params, &clt_params.access);
INTERNAL(snd_pcm_hw_params_get_format)(params, &clt_params.format);
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog