[vlc-commits] audioqueue: don't use the main CFRunLoop for the (empty) data callback, but one of AudioQueue's internal threads
Felix Paul Kühne
git at videolan.org
Sat Jan 19 18:56:44 CET 2013
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jan 19 18:56:28 2013 +0100| [cf7d8d97d51fc77cce5bb4274b563b41c9d6220a] | committer: Felix Paul Kühne
audioqueue: don't use the main CFRunLoop for the (empty) data callback, but one of AudioQueue's internal threads
Otherwise, we will encounter delays of up to 10 secs when stopping the AudioQueue
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf7d8d97d51fc77cce5bb4274b563b41c9d6220a
---
modules/audio_output/audioqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/audio_output/audioqueue.c b/modules/audio_output/audioqueue.c
index 7541ab7..ea7acc4 100644
--- a/modules/audio_output/audioqueue.c
+++ b/modules/audio_output/audioqueue.c
@@ -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
More information about the vlc-commits
mailing list