mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
free the memblockq if we decide not to play it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1167 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
f15b4c7c70
commit
4dd3b31825
1 changed files with 6 additions and 2 deletions
|
|
@ -92,11 +92,15 @@ int pa_play_memblockq(
|
|||
assert(ss);
|
||||
assert(q);
|
||||
|
||||
if (pa_memblockq_get_length(q) <= 0)
|
||||
if (pa_memblockq_get_length(q) <= 0) {
|
||||
pa_memblockq_free(q);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (cvolume && pa_cvolume_is_muted(cvolume))
|
||||
if (cvolume && pa_cvolume_is_muted(cvolume)) {
|
||||
pa_memblockq_free(q);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!(si = pa_sink_input_new(sink, name, __FILE__, ss, map, cvolume, 0, PA_RESAMPLER_INVALID)))
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue