[polypaudio-commits] r1046 - /trunk/src/utils/padsp.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Jun 20 08:36:30 PDT 2006


Author: ossman
Date: Tue Jun 20 17:36:28 2006
New Revision: 1046

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1046&root=pulseaudio&view=rev
Log:
Make fix_metrics() exit early so that it doesn't spam the output needlessly.

Modified:
    trunk/src/utils/padsp.c

Modified: trunk/src/utils/padsp.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/padsp.c?rev=1046&root=pulseaudio&r1=1045&r2=1046&view=diff
==============================================================================
--- trunk/src/utils/padsp.c (original)
+++ trunk/src/utils/padsp.c Tue Jun 20 17:36:28 2006
@@ -673,6 +673,13 @@
     char t[PA_SAMPLE_SPEC_SNPRINT_MAX];
 
     fs = pa_frame_size(&i->sample_spec);
+
+    /* Don't fix things more than necessary */
+    if ((i->fragment_size % fs) == 0 &&
+        i->n_fragments >= 2 &&
+        i->fragment_size > 0)
+        return;
+
     i->fragment_size = (i->fragment_size/fs)*fs;
 
     /* Number of fragments set? */




More information about the pulseaudio-commits mailing list