mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-11 13:30:02 -05:00
make use of pa_memchunk_will_need() before handing sample cache audio to the RT threads
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1748 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
7dbabc47bb
commit
3e188b192c
1 changed files with 2 additions and 0 deletions
|
|
@ -155,6 +155,8 @@ int pa_play_memchunk(
|
||||||
if (volume && pa_cvolume_is_muted(volume))
|
if (volume && pa_cvolume_is_muted(volume))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
pa_memchunk_will_need(chunk);
|
||||||
|
|
||||||
u = pa_msgobject_new(memchunk_stream);
|
u = pa_msgobject_new(memchunk_stream);
|
||||||
u->parent.parent.free = memchunk_stream_free;
|
u->parent.parent.free = memchunk_stream_free;
|
||||||
u->parent.process_msg = memchunk_stream_process_msg;
|
u->parent.process_msg = memchunk_stream_process_msg;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue