mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
module-rtp: allocate receive buffer based on MTU
Use the MTU to allocate the receive buffer instead of using a hardcoded size. Fixes #4394
This commit is contained in:
parent
a53bc035c0
commit
44340fde05
3 changed files with 23 additions and 5 deletions
|
|
@ -665,10 +665,15 @@ uint64_t rtp_stream_get_time(struct rtp_stream *s, uint32_t *rate)
|
|||
uint16_t rtp_stream_get_seq(struct rtp_stream *s)
|
||||
{
|
||||
struct impl *impl = (struct impl*)s;
|
||||
|
||||
return impl->seq;
|
||||
}
|
||||
|
||||
size_t rtp_stream_get_mtu(struct rtp_stream *s)
|
||||
{
|
||||
struct impl *impl = (struct impl*)s;
|
||||
return impl->mtu;
|
||||
}
|
||||
|
||||
void rtp_stream_set_first(struct rtp_stream *s)
|
||||
{
|
||||
struct impl *impl = (struct impl*)s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue