diff options
author | Chris Hiszpanski <chris.hiszpanski@verkada.com> | 2022-05-23 00:51:00 -0700 |
---|---|---|
committer | Chris Hiszpanski <chris.hiszpanski@verkada.com> | 2022-05-23 00:51:00 -0700 |
commit | b24176ea5328b76b246c519a469e62f53dbe8a69 (patch) | |
tree | 00050de67326c6e82dcfd7b9469a2b3ced95e431 | |
parent | 1c21817646f1f3c8fc99f1fd6ad04324641da383 (diff) |
Fix hardcoded num urls per ice server
-rw-r--r-- | tinyrtc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -52,7 +52,7 @@ struct trtc_peerconn_t; struct trtc_ice_server_t { char credential[TRTC_MAX_ICE_SERVER_CREDENTIAL_SIZE]; - char urls[3][TRTC_MAX_ICE_SERVER_URL_SIZE]; + char urls[TRTC_MAX_ICE_SERVER_URLS][TRTC_MAX_ICE_SERVER_URL_SIZE]; char username[TRTC_MAX_ICE_SERVER_USERNAME_SIZE]; }; @@ -88,6 +88,7 @@ void trtc_init(); * \return Peer connection. NULL if all peer connections are already in use. */ struct trtc_peerconn_t* trtc_peer_connection(struct trtc_config_t cfg); + void trtc_peer_connection_destroy(struct trtc_peerconn_t* pc); /** |