[pulseaudio-discuss] [PATCH] modules: Propagate (dynamic) latency flag changes in remap-source.

Juho Hämäläinen juho.hamalainen at tieto.com
Wed Mar 27 08:32:47 PDT 2013


---
 src/modules/module-remap-source.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/modules/module-remap-source.c b/src/modules/module-remap-source.c
index c47d9b0..a1594e8 100644
--- a/src/modules/module-remap-source.c
+++ b/src/modules/module-remap-source.c
@@ -244,7 +244,8 @@ static void source_output_moving_cb(pa_source_output *o, pa_source *dest) {
 
     if (dest) {
         pa_source_set_asyncmsgq(u->source, dest->asyncmsgq);
-        pa_source_update_flags(u->source, PA_SOURCE_LATENCY|PA_SOURCE_DYNAMIC_LATENCY, dest->flags);
+        pa_source_set_latency_flag(u->source, dest->flags & PA_SOURCE_LATENCY);
+        pa_source_set_dynamic_latency_flag(u->source, dest->flags & PA_SOURCE_DYNAMIC_LATENCY);
     } else
         pa_source_set_asyncmsgq(u->source, NULL);
 
@@ -374,6 +375,8 @@ int pa__init(pa_module*m) {
 
     u->source_output->push = source_output_push_cb;
     u->source_output->process_rewind = source_output_process_rewind_cb;
+    u->source_output->update_source_latency_flag = pa_source_output_update_source_latency_flag_cb;
+    u->source_output->update_source_dynamic_latency_flag = pa_source_output_update_source_dynamic_latency_flag_cb;
     u->source_output->kill = source_output_kill_cb;
     u->source_output->attach = source_output_attach_cb;
     u->source_output->detach = source_output_detach_cb;
-- 
1.7.10.4



More information about the pulseaudio-discuss mailing list