comparison src/endp_create.c @ 24:84d427017d2f

endp: implement RTP Tx
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 07 Jul 2024 07:33:48 +0000
parents b8cb5146e5b4
children
comparison
equal deleted inserted replaced
23:9e477a4b485a 24:84d427017d2f
2 * Create and destroy functions for twrtp_endp. 2 * Create and destroy functions for twrtp_endp.
3 */ 3 */
4 4
5 #include <stdint.h> 5 #include <stdint.h>
6 #include <stdbool.h> 6 #include <stdbool.h>
7 #include <string.h> 7 #include <stdlib.h>
8 8
9 #include <osmocom/core/talloc.h> 9 #include <osmocom/core/talloc.h>
10 #include <osmocom/core/osmo_io.h> 10 #include <osmocom/core/osmo_io.h>
11 #include <osmocom/core/utils.h> 11 #include <osmocom/core/utils.h>
12 12
46 osmo_iofd_free(endp->iofd_rtcp); 46 osmo_iofd_free(endp->iofd_rtcp);
47 talloc_free(endp); 47 talloc_free(endp);
48 return NULL; 48 return NULL;
49 } 49 }
50 50
51 endp->tx.ssrc = random();
51 return endp; 52 return endp;
52 } 53 }
53 54
54 void twrtp_endp_destroy(struct twrtp_endp *endp) 55 void twrtp_endp_destroy(struct twrtp_endp *endp)
55 { 56 {