[vlc-commits] [Git][videolan/vlc][master] vlc_timestamp_helper: fix compilation from C++ modules
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Wed Mar 16 09:33:57 UTC 2022
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
cd570400 by Steve Lhomme at 2022-03-16T08:51:05+00:00
vlc_timestamp_helper: fix compilation from C++ modules
- - - - -
1 changed file:
- include/vlc_timestamp_helper.h
Changes:
=====================================
include/vlc_timestamp_helper.h
=====================================
@@ -43,10 +43,10 @@ typedef struct
static inline timestamp_fifo_t *timestamp_FifoNew(uint32_t capacity)
{
- timestamp_fifo_t *fifo = calloc(1, sizeof(*fifo));
+ timestamp_fifo_t *fifo = (timestamp_fifo_t *)calloc(1, sizeof(*fifo));
if (!fifo)
return NULL;
- fifo->buffer = vlc_alloc(capacity, sizeof(*fifo->buffer));
+ fifo->buffer = (vlc_tick_t*)vlc_alloc(capacity, sizeof(*fifo->buffer));
if (!fifo->buffer) {
free(fifo);
return NULL;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cd570400d71a4afb79802d0b32718230544e7f69
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cd570400d71a4afb79802d0b32718230544e7f69
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list