[pulseaudio-commits] r2458 - in /trunk/src/modules: module-ladspa-sink.c module-remap-sink.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat May 17 02:16:02 PDT 2008


Author: lennart
Date: Sat May 17 11:16:00 2008
New Revision: 2458

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2458&root=pulseaudio&view=rev
Log:
use pa_sink_set_latency_range() where applicable

Modified:
    trunk/src/modules/module-ladspa-sink.c
    trunk/src/modules/module-remap-sink.c

Modified: trunk/src/modules/module-ladspa-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-ladspa-sink.c?rev=2458&root=pulseaudio&r1=2457&r2=2458&view=diff
==============================================================================
--- trunk/src/modules/module-ladspa-sink.c (original)
+++ trunk/src/modules/module-ladspa-sink.c Sat May 17 11:16:00 2008
@@ -297,8 +297,7 @@
     pa_sink_set_rtpoll(u->sink, i->sink->rtpoll);
     pa_sink_attach_within_thread(u->sink);
 
-    u->sink->max_latency = u->master->max_latency;
-    u->sink->min_latency = u->master->min_latency;
+    pa_sink_set_latency_range(u->sink, u->master->min_latency, u->master->max_latency);
 }
 
 /* Called from main context */

Modified: trunk/src/modules/module-remap-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-remap-sink.c?rev=2458&root=pulseaudio&r1=2457&r2=2458&view=diff
==============================================================================
--- trunk/src/modules/module-remap-sink.c (original)
+++ trunk/src/modules/module-remap-sink.c Sat May 17 11:16:00 2008
@@ -214,8 +214,7 @@
     pa_sink_set_rtpoll(u->sink, i->sink->rtpoll);
     pa_sink_attach_within_thread(u->sink);
 
-    u->sink->max_latency = u->master->max_latency;
-    u->sink->min_latency = u->master->min_latency;
+    pa_sink_set_latency_range(u->sink, u->master->min_latency, u->master->max_latency);
 }
 
 /* Called from main context */




More information about the pulseaudio-commits mailing list