[pulseaudio-commits] r1758 - /branches/lennart/src/daemon/main.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Sep 3 13:50:55 PDT 2007


Author: lennart
Date: Mon Sep  3 22:50:55 2007
New Revision: 1758

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1758&root=pulseaudio&view=rev
Log:
only list supported resampling methods when --dump-resample-methods is executed

Modified:
    branches/lennart/src/daemon/main.c

Modified: branches/lennart/src/daemon/main.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/daemon/main.c?rev=1758&root=pulseaudio&r1=1757&r2=1758&view=diff
==============================================================================
--- branches/lennart/src/daemon/main.c (original)
+++ branches/lennart/src/daemon/main.c Mon Sep  3 22:50:55 2007
@@ -365,8 +365,7 @@
 
     LTDL_SET_PRELOADED_SYMBOLS();
 
-    r = lt_dlinit();
-    assert(r == 0);
+    pa_assert_se(lt_dlinit() == 0);
 
 #ifdef OS_IS_WIN32
     {
@@ -424,7 +423,8 @@
             int i;
 
             for (i = 0; i < PA_RESAMPLER_MAX; i++)
-                printf("%s\n", pa_resample_method_to_string(i));
+                if (pa_resample_method_supported(i))
+                    printf("%s\n", pa_resample_method_to_string(i));
                        
             goto finish;
         }




More information about the pulseaudio-commits mailing list