]> code.delx.au - pulseaudio/commitdiff
make use of pa_memchunk_will_need() before handing sample cache audio to the RT threads
authorLennart Poettering <lennart@poettering.net>
Sun, 2 Sep 2007 20:38:57 +0000 (20:38 +0000)
committerLennart Poettering <lennart@poettering.net>
Sun, 2 Sep 2007 20:38:57 +0000 (20:38 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1748 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/play-memchunk.c

index 3ebbc14c94d5c164eacbcab8472229e765b7cdb4..f60f706e0329e2e310bb6a44b879056febcba040 100644 (file)
@@ -155,6 +155,8 @@ int pa_play_memchunk(
     if (volume && pa_cvolume_is_muted(volume))
         return 0;
 
+    pa_memchunk_will_need(chunk);
+
     u = pa_msgobject_new(memchunk_stream);
     u->parent.parent.free = memchunk_stream_free;
     u->parent.process_msg = memchunk_stream_process_msg;