Skip to content

Commit

Permalink
Replace void* with RingBuffer* to avoid conversions.
Browse files Browse the repository at this point in the history
`vbuf_raw` is always a `RingBuffer*` so there is no need to pretend it
could ever be anything else (as indicated by it being a pointer to
void).
  • Loading branch information
iphydf committed Sep 23, 2016
1 parent 18b298a commit b588e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toxav/video.h
Expand Up @@ -47,7 +47,7 @@ typedef struct VCSession_s {

/* decoding */
vpx_codec_ctx_t decoder[1];
void *vbuf_raw; /* Un-decoded data */
RingBuffer *vbuf_raw; /* Un-decoded data */

uint64_t linfts; /* Last received frame time stamp */
uint32_t lcfd; /* Last calculated frame duration for incoming video payload */
Expand Down

0 comments on commit b588e0f

Please sign in to comment.