summaryrefslogtreecommitdiff
path: root/toxav
diff options
context:
space:
mode:
Diffstat (limited to 'toxav')
-rw-r--r--toxav/rtp.c2
-rw-r--r--toxav/toxav.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/toxav/rtp.c b/toxav/rtp.c
index aed9523b..f48c483b 100644
--- a/toxav/rtp.c
+++ b/toxav/rtp.c
@@ -256,7 +256,7 @@ static bool fill_data_into_slot(const Logger *log, struct RTPWorkBufferList *wkb
256 struct RTPMessage *msg = (struct RTPMessage *)calloc(1, sizeof(struct RTPMessage) + header->data_length_full); 256 struct RTPMessage *msg = (struct RTPMessage *)calloc(1, sizeof(struct RTPMessage) + header->data_length_full);
257 257
258 if (msg == nullptr) { 258 if (msg == nullptr) {
259 LOGGER_ERROR(log, "Out of memory while trying to allocate for frame of size %u\n", 259 LOGGER_ERROR(log, "Out of memory while trying to allocate for frame of size %u",
260 (unsigned)header->data_length_full); 260 (unsigned)header->data_length_full);
261 // Out of memory: throw away the incoming data. 261 // Out of memory: throw away the incoming data.
262 return false; 262 return false;
diff --git a/toxav/toxav.c b/toxav/toxav.c
index 8f3c7e01..dda16ecd 100644
--- a/toxav/toxav.c
+++ b/toxav/toxav.c
@@ -918,7 +918,7 @@ bool toxav_video_send_frame(ToxAV *av, uint32_t friend_number, uint16_t width, u
918 918
919 if (vrc != VPX_CODEC_OK) { 919 if (vrc != VPX_CODEC_OK) {
920 pthread_mutex_unlock(call->mutex_video); 920 pthread_mutex_unlock(call->mutex_video);
921 LOGGER_ERROR(av->m->log, "Could not encode video frame: %s\n", vpx_codec_err_to_string(vrc)); 921 LOGGER_ERROR(av->m->log, "Could not encode video frame: %s", vpx_codec_err_to_string(vrc));
922 rc = TOXAV_ERR_SEND_FRAME_INVALID; 922 rc = TOXAV_ERR_SEND_FRAME_INVALID;
923 goto RETURN; 923 goto RETURN;
924 } 924 }
@@ -1308,7 +1308,7 @@ static bool call_prepare_transmission(ToxAVCall *call)
1308 } 1308 }
1309 1309
1310 if (call->active) { 1310 if (call->active) {
1311 LOGGER_WARNING(av->m->log, "Call already active!\n"); 1311 LOGGER_WARNING(av->m->log, "Call already active!");
1312 return true; 1312 return true;
1313 } 1313 }
1314 1314