summaryrefslogtreecommitdiff
path: root/toxav/video.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-08-12 12:53:12 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-08-12 20:07:18 +0000
commit4ed6e5999226f9061f546108c5be72fe6f21a775 (patch)
treee716af08ec232c8d01b526d7b88c5ed502cd6a77 /toxav/video.c
parent767ccbb387a462c9bc21aaf22d2c3d3358c147b8 (diff)
Fix enumerator names to comply with toxcore naming standards.
Diffstat (limited to 'toxav/video.c')
-rw-r--r--toxav/video.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxav/video.c b/toxav/video.c
index 034a8b56..d31df42b 100644
--- a/toxav/video.c
+++ b/toxav/video.c
@@ -360,13 +360,13 @@ int vc_queue_message(void *vcp, struct RTPMessage *msg)
360 VCSession *vc = (VCSession *)vcp; 360 VCSession *vc = (VCSession *)vcp;
361 const struct RTPHeader *const header = &msg->header; 361 const struct RTPHeader *const header = &msg->header;
362 362
363 if (msg->header.pt == (rtp_TypeVideo + 2) % 128) { 363 if (msg->header.pt == (RTP_TYPE_VIDEO + 2) % 128) {
364 LOGGER_WARNING(vc->log, "Got dummy!"); 364 LOGGER_WARNING(vc->log, "Got dummy!");
365 free(msg); 365 free(msg);
366 return 0; 366 return 0;
367 } 367 }
368 368
369 if (msg->header.pt != rtp_TypeVideo % 128) { 369 if (msg->header.pt != RTP_TYPE_VIDEO % 128) {
370 LOGGER_WARNING(vc->log, "Invalid payload type! pt=%d", (int)msg->header.pt); 370 LOGGER_WARNING(vc->log, "Invalid payload type! pt=%d", (int)msg->header.pt);
371 free(msg); 371 free(msg);
372 return -1; 372 return -1;
@@ -374,7 +374,7 @@ int vc_queue_message(void *vcp, struct RTPMessage *msg)
374 374
375 pthread_mutex_lock(vc->queue_mutex); 375 pthread_mutex_lock(vc->queue_mutex);
376 376
377 if ((header->flags & RTP_LARGE_FRAME) && header->pt == rtp_TypeVideo % 128) { 377 if ((header->flags & RTP_LARGE_FRAME) && header->pt == RTP_TYPE_VIDEO % 128) {
378 LOGGER_DEBUG(vc->log, "rb_write msg->len=%d b0=%d b1=%d", (int)msg->len, (int)msg->data[0], (int)msg->data[1]); 378 LOGGER_DEBUG(vc->log, "rb_write msg->len=%d b0=%d b1=%d", (int)msg->len, (int)msg->data[0], (int)msg->data[1]);
379 } 379 }
380 380