]> git.sesse.net Git - vlc/commitdiff
audioqueue: don't use the main CFRunLoop for the (empty) data callback, but one of...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 19 Jan 2013 17:56:28 +0000 (18:56 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 19 Jan 2013 17:56:28 +0000 (18:56 +0100)
Otherwise, we will encounter delays of up to 10 secs when stopping the AudioQueue

modules/audio_output/audioqueue.c

index 7541ab7a1370f5ad54f8ef56e684df5b26082284..ea7acc40b8ebaa41efe9fc61a752418665e81e7a 100644 (file)
@@ -97,7 +97,7 @@ static int Start(audio_output_t *p_aout, audio_sample_format_t *restrict fmt)
     status = AudioQueueNewOutput(&deviceFormat,         // Format
                                  AudioQueueCallback,    // Callback
                                  NULL,                  // User data, passed to the callback
-                                 CFRunLoopGetMain(),    // RunLoop
+                                 NULL,                  // RunLoop
                                  kCFRunLoopCommonModes, // RunLoop mode
                                  0,                     // Flags ; must be zero (per documentation)...
                                  &(p_sys->audioQueue)); // Output