1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

add placeholder rtp receive handler

This commit is contained in:
Marvin Klimke 2018-11-28 06:11:13 +01:00
parent 29a24d354e
commit 5d9ad4e9e0

View file

@ -113,6 +113,15 @@ char * rtp_print(struct node *n)
return buf;
}
static void rtp_handler(const struct sa *src, const struct rtp_header *hdr, struct mbuf *mb, void *arg)
{
(void)hdr;
(void)arg;
(void)mb;
/* placeholder */
}
int rtp_start(struct node *n)
{
int ret;
@ -128,7 +137,7 @@ int rtp_start(struct node *n)
return ret;
uint16_t port = sa_port(&r->local) & ~1;
ret = rtp_listen(&r->rs, IPPROTO_UDP, &r->local, port, port+1, r->enable_rtcp, NULL, NULL, NULL);
ret = rtp_listen(&r->rs, IPPROTO_UDP, &r->local, port, port+1, r->enable_rtcp, rtp_handler, NULL, NULL);
/* TODO */