[polypaudio-commits] r853 - /trunk/src/polypcore/resampler.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat May 13 14:18:33 PDT 2006


Author: lennart
Date: Sat May 13 23:18:32 2006
New Revision: 853

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=853&root=polypaudio&view=rev
Log:
don't hit an assert when trying to resample data for 6channel audio

Modified:
    trunk/src/polypcore/resampler.c

Modified: trunk/src/polypcore/resampler.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/resampler.c?rev=853&root=polypaudio&r1=852&r2=853&view=diff
==============================================================================
--- trunk/src/polypcore/resampler.c (original)
+++ trunk/src/polypcore/resampler.c Sat May 13 23:18:32 2006
@@ -168,7 +168,8 @@
 }
 
 size_t pa_resampler_request(pa_resampler *r, size_t out_length) {
-    assert(r && (out_length % r->o_fz) == 0);
+    assert(r);
+    
     return (((out_length / r->o_fz)*r->i_ss.rate)/r->o_ss.rate) * r->i_fz;
 }
 




More information about the pulseaudio-commits mailing list