mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-21 06:59:59 -05:00
rtp: Make init return a value for success/failure
This will be used in the future when writing other RTP implementations that can fail on init. Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
This commit is contained in:
parent
7670dffe59
commit
a9a3f0874a
3 changed files with 5 additions and 4 deletions
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
#include "rtp.h"
|
||||
|
||||
pa_rtp_context* pa_rtp_context_init_send(pa_rtp_context *c, int fd, uint32_t ssrc, uint8_t payload, size_t frame_size) {
|
||||
int pa_rtp_context_init_send(pa_rtp_context *c, int fd, uint32_t ssrc, uint8_t payload, size_t frame_size) {
|
||||
pa_assert(c);
|
||||
pa_assert(fd >= 0);
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ pa_rtp_context* pa_rtp_context_init_send(pa_rtp_context *c, int fd, uint32_t ssr
|
|||
c->recv_buf_size = 0;
|
||||
pa_memchunk_reset(&c->memchunk);
|
||||
|
||||
return c;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define MAX_IOVECS 16
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue