mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
stream: present less writable bufferspace
firefox likes that better
This commit is contained in:
parent
9d694b7b38
commit
8bb4b91e74
1 changed files with 2 additions and 1 deletions
|
|
@ -454,8 +454,9 @@ static inline uint32_t queued_size(const pa_stream *s, uint64_t elapsed)
|
||||||
|
|
||||||
static inline uint32_t writable_size(const pa_stream *s, uint64_t queued)
|
static inline uint32_t writable_size(const pa_stream *s, uint64_t queued)
|
||||||
{
|
{
|
||||||
return s->maxsize - SPA_MIN(queued, s->maxsize);
|
return s->maxblock - SPA_MIN(queued, s->maxblock);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint32_t required_size(const pa_stream *s)
|
static inline uint32_t required_size(const pa_stream *s)
|
||||||
{
|
{
|
||||||
return s->buffer_attr.tlength;
|
return s->buffer_attr.tlength;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue