From b8f790dd584edc8b6c798bf83ae2fb6a25f7da1f Mon Sep 17 00:00:00 2001 From: Mamadou DIOP Date: Tue, 18 Aug 2015 19:49:29 +0200 Subject: - --- tinyRTP/src/trtp_manager.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tinyRTP') 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; -- cgit v1.1