[pulseaudio-commits] r1886 - /branches/lennart/src/pulsecore/sink-input.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Sep 21 19:00:35 PDT 2007


Author: lennart
Date: Sat Sep 22 04:00:32 2007
New Revision: 1886

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1886&root=pulseaudio&view=rev
Log:
minor optimization

Modified:
    branches/lennart/src/pulsecore/sink-input.c

Modified: branches/lennart/src/pulsecore/sink-input.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/sink-input.c?rev=1886&root=pulseaudio&r1=1885&r2=1886&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/sink-input.c (original)
+++ branches/lennart/src/pulsecore/sink-input.c Sat Sep 22 04:00:32 2007
@@ -690,7 +690,7 @@
 }
 
 int pa_sink_input_move_to(pa_sink_input *i, pa_sink *dest, int immediately) {
-    pa_resampler *new_resampler = NULL;
+    pa_resampler *new_resampler;
     pa_sink *origin;
     pa_usec_t silence_usec = 0;
     pa_sink_input_move_info info;
@@ -739,7 +739,8 @@
             pa_log_warn("Unsupported resampling operation.");
             return -1;
         }
-    }
+    } else
+        new_resampler = NULL;
 
     pa_hook_fire(&i->sink->core->hooks[PA_CORE_HOOK_SINK_INPUT_MOVE], i);
 




More information about the pulseaudio-commits mailing list