Skip to content
  • redfast00's avatar
    rtp: fix 'size mismatch' on BSD style operating systems · 9f32b7d7
    redfast00 authored and PulseAudio Marge Bot's avatar PulseAudio Marge Bot committed
    On FreeBSD (and probably other BSDs as well), the FIONREAD ioctl
    on UDP sockets does not return the size of the next datagram (like
    it does on Linux), but returns the size of the output buffer: this
    count contain multiple datagrams and also contains the headers.
    
    We fixed this by taking the result of the FIONREAD as lower bound
    for the size, adding an upper bound and then removing the check
    that the sizes should be exactly the same.
    
    Part-of: <!718>
    9f32b7d7