summaryrefslogtreecommitdiffstats
path: root/tinyRTP
diff options
context:
space:
mode:
authorMamadou DIOP <bossiel@yahoo.fr>2015-08-18 19:49:29 +0200
committerMamadou DIOP <bossiel@yahoo.fr>2015-08-18 19:49:29 +0200
commitb8f790dd584edc8b6c798bf83ae2fb6a25f7da1f (patch)
treee1e13d37316127a8afca8bdd8870a580b8f3b0a6 /tinyRTP
parent37fe86b3ea81fc2fd81361d238858011393cb6c1 (diff)
downloaddoubango-b8f790dd584edc8b6c798bf83ae2fb6a25f7da1f.zip
doubango-b8f790dd584edc8b6c798bf83ae2fb6a25f7da1f.tar.gz
-
Diffstat (limited to 'tinyRTP')
-rw-r--r--tinyRTP/src/trtp_manager.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/tinyRTP/src/trtp_manager.c b/tinyRTP/src/trtp_manager.c
index 6e6b00e..70968d3 100644
--- a/tinyRTP/src/trtp_manager.c
+++ b/tinyRTP/src/trtp_manager.c
@@ -95,10 +95,14 @@ static int _trtp_transport_layer_cb(const tnet_transport_event_t* e)
}
case event_brokenpipe:
{
+ tnet_fd_t broken_fd;
+ tnet_socket_t* socket;
+ tsk_bool_t is_rtcp_socket;
+
tsk_safeobj_lock(manager);
- tnet_fd_t broken_fd = e->local_fd;
- tnet_socket_t* socket = tsk_null;
- tsk_bool_t is_rtcp_socket = tsk_false;
+ broken_fd = e->local_fd;
+ socket = tsk_null;
+ is_rtcp_socket = tsk_false;
if (manager->transport && manager->transport->master && manager->transport->master->fd == broken_fd) {
socket = manager->transport->master;
OpenPOWER on IntegriCloud