diff options
Diffstat (limited to 'toxav/video.c')
-rw-r--r-- | toxav/video.c | 6 |
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 | ||