PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio


Commits:
d8b0c9ab by Georg Chini at 2022-05-16T20:40:09+02:00
module-tunnel-sink/source-new: Add PA_STREAM_ADJUST_LATENCY flag at stream 
creation

Without the flag, the latency on the remote server will not be configured 
correctly.

Part-of: 
<https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/699>

- - - - -


2 changed files:

- src/modules/module-tunnel-sink-new.c
- src/modules/module-tunnel-source-new.c


Changes:

=====================================
src/modules/module-tunnel-sink-new.c
=====================================
@@ -398,7 +398,7 @@ static void on_sink_created(struct userdata *u) {
     if (pa_stream_connect_playback(u->stream,
                                    u->remote_sink_name,
                                    &bufferattr,
-                                   PA_STREAM_INTERPOLATE_TIMING | 
PA_STREAM_DONT_MOVE | PA_STREAM_START_CORKED | PA_STREAM_AUTO_TIMING_UPDATE,
+                                   PA_STREAM_INTERPOLATE_TIMING | 
PA_STREAM_DONT_MOVE | PA_STREAM_START_CORKED | PA_STREAM_AUTO_TIMING_UPDATE | 
PA_STREAM_ADJUST_LATENCY,
                                    NULL,
                                    NULL) < 0) {
         pa_log_error("Could not connect stream.");


=====================================
src/modules/module-tunnel-source-new.c
=====================================
@@ -380,7 +380,7 @@ static void on_source_created(struct userdata *u) {
     if (pa_stream_connect_record(u->stream,
                                  u->remote_source_name,
                                  &bufferattr,
-                                 
PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_DONT_MOVE|PA_STREAM_AUTO_TIMING_UPDATE|PA_STREAM_START_CORKED)
 < 0) {
+                                 
PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_DONT_MOVE|PA_STREAM_AUTO_TIMING_UPDATE|PA_STREAM_START_CORKED|PA_STREAM_ADJUST_LATENCY)
 < 0) {
         pa_log_debug("Could not create stream: %s", 
pa_strerror(pa_context_errno(u->context)));
         u->thread_mainloop_api->quit(u->thread_mainloop_api, 
TUNNEL_THREAD_FAILED_MAINLOOP);
     }



View it on GitLab: 
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/d8b0c9ab503e39daaca2267c0996d4cf75585f33

-- 
View it on GitLab: 
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/d8b0c9ab503e39daaca2267c0996d4cf75585f33
You're receiving this email because of your account on gitlab.freedesktop.org.


Reply via email to