]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Gremlin fix and comment tidy-up
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Fri, 13 Jan 2023 15:08:51 +0000 (15:08 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Fri, 13 Jan 2023 15:08:51 +0000 (15:08 +0000)
audio_pa.c

index d2478fe77be10799b645b117e9afcf0305a69268..6299c411f7ca5a7bd390f9b143c274860a594da1 100644 (file)
@@ -93,10 +93,8 @@ static void connect_stream() {
   buffer_attr.prebuf = (uint32_t)0;
   buffer_attr.minreq = (uint32_t)-1;
 
-  // Settings copied as per the chromium browser source
   pa_stream_flags_t stream_flags;
   stream_flags = PA_STREAM_START_CORKED | PA_STREAM_INTERPOLATE_TIMING | PA_STREAM_NOT_MONOTONIC |
-                 //        PA_STREAM_AUTO_TIMING_UPDATE;
                  PA_STREAM_AUTO_TIMING_UPDATE | PA_STREAM_ADJUST_LATENCY;
 
   int connect_result;
@@ -212,6 +210,7 @@ static int init(__attribute__((unused)) int argc, __attribute__((unused)) char *
   }
 
   pa_threaded_mainloop_unlock(mainloop);
+  connect_stream();
   return 0;
 }