mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
* use setresuid() instead of setruid() if available
* if fix for the non-fp resampler git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@314 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
758647868f
commit
9a9309f593
3 changed files with 18 additions and 8 deletions
|
|
@ -342,8 +342,8 @@ static void trivial_run(struct pa_resampler *r, const struct pa_memchunk *in, st
|
|||
unsigned j;
|
||||
|
||||
j = (i->o_counter * r->i_ss.rate / r->o_ss.rate);
|
||||
assert(j >= i->i_counter);
|
||||
j = j - i->i_counter;
|
||||
|
||||
j = j > i->i_counter ? j - i->i_counter : 0;
|
||||
|
||||
if (j >= nframes)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue