diff options
-rw-r--r-- | toxav/toxav.c | 4 | ||||
-rw-r--r-- | toxcore/LAN_discovery.c | 6 | ||||
-rw-r--r-- | toxcore/TCP_client.c | 1 |
3 files changed, 2 insertions, 9 deletions
diff --git a/toxav/toxav.c b/toxav/toxav.c index 9f99ce92..870dd111 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c | |||
@@ -1083,7 +1083,7 @@ void toxav_handle_packet(RTPSession *_session, RTPMessage *_msg) | |||
1083 | av->audio_decode_write = (w + 1) % AUDIO_DECODE_QUEUE_SIZE; | 1083 | av->audio_decode_write = (w + 1) % AUDIO_DECODE_QUEUE_SIZE; |
1084 | pthread_cond_signal(&av->decode_cond); | 1084 | pthread_cond_signal(&av->decode_cond); |
1085 | } else { | 1085 | } else { |
1086 | printf("dropped audio frame\n"); | 1086 | LOGGER_DEBUG("Dropped audio frame\n"); |
1087 | free(p); | 1087 | free(p); |
1088 | } | 1088 | } |
1089 | 1089 | ||
@@ -1123,7 +1123,7 @@ void toxav_handle_packet(RTPSession *_session, RTPMessage *_msg) | |||
1123 | av->video_decode_write = (w + 1) % VIDEO_DECODE_QUEUE_SIZE; | 1123 | av->video_decode_write = (w + 1) % VIDEO_DECODE_QUEUE_SIZE; |
1124 | pthread_cond_signal(&av->decode_cond); | 1124 | pthread_cond_signal(&av->decode_cond); |
1125 | } else { | 1125 | } else { |
1126 | printf("dropped video frame\n"); | 1126 | LOGGER_DEBUG("Dropped video frame\n"); |
1127 | free(p); | 1127 | free(p); |
1128 | } | 1128 | } |
1129 | 1129 | ||
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c index 420c490d..3c05fe8d 100644 --- a/toxcore/LAN_discovery.c +++ b/toxcore/LAN_discovery.c | |||
@@ -46,7 +46,6 @@ static void fetch_broadcast_info(uint16_t port) | |||
46 | unsigned long ulOutBufLen = sizeof(pAdapterInfo); | 46 | unsigned long ulOutBufLen = sizeof(pAdapterInfo); |
47 | 47 | ||
48 | if (pAdapterInfo == NULL) { | 48 | if (pAdapterInfo == NULL) { |
49 | printf("Error allocating memory for pAdapterInfo\n"); | ||
50 | return; | 49 | return; |
51 | } | 50 | } |
52 | 51 | ||
@@ -55,7 +54,6 @@ static void fetch_broadcast_info(uint16_t port) | |||
55 | pAdapterInfo = malloc(ulOutBufLen); | 54 | pAdapterInfo = malloc(ulOutBufLen); |
56 | 55 | ||
57 | if (pAdapterInfo == NULL) { | 56 | if (pAdapterInfo == NULL) { |
58 | printf("Error allocating memory needed to call GetAdaptersinfo\n"); | ||
59 | return; | 57 | return; |
60 | } | 58 | } |
61 | } | 59 | } |
@@ -78,7 +76,6 @@ static void fetch_broadcast_info(uint16_t port) | |||
78 | ip_port->ip.ip4.uint32 = htonl(broadcast_ip); | 76 | ip_port->ip.ip4.uint32 = htonl(broadcast_ip); |
79 | ip_port->port = port; | 77 | ip_port->port = port; |
80 | broadcast_count++; | 78 | broadcast_count++; |
81 | printf("broadcast ip: %s\n", ip_ntoa(&ip_port->ip)); | ||
82 | 79 | ||
83 | if (broadcast_count >= MAX_INTERFACES) { | 80 | if (broadcast_count >= MAX_INTERFACES) { |
84 | return; | 81 | return; |
@@ -88,10 +85,7 @@ static void fetch_broadcast_info(uint16_t port) | |||
88 | 85 | ||
89 | pAdapter = pAdapter->Next; | 86 | pAdapter = pAdapter->Next; |
90 | } | 87 | } |
91 | } else { | ||
92 | printf("Fetching adapter info failed %i\n", ret); | ||
93 | } | 88 | } |
94 | |||
95 | } | 89 | } |
96 | 90 | ||
97 | #elif defined(__linux__) | 91 | #elif defined(__linux__) |
diff --git a/toxcore/TCP_client.c b/toxcore/TCP_client.c index 45220538..ff92d215 100644 --- a/toxcore/TCP_client.c +++ b/toxcore/TCP_client.c | |||
@@ -460,7 +460,6 @@ TCP_Client_Connection *new_TCP_connection(IP_Port ip_port, const uint8_t *public | |||
460 | sock_t sock = socket(ip_port.ip.family, SOCK_STREAM, IPPROTO_TCP); | 460 | sock_t sock = socket(ip_port.ip.family, SOCK_STREAM, IPPROTO_TCP); |
461 | 461 | ||
462 | if (!sock_valid(sock)) { | 462 | if (!sock_valid(sock)) { |
463 | printf("fail1 %u\n", sock); | ||
464 | return NULL; | 463 | return NULL; |
465 | } | 464 | } |
466 | 465 | ||