compiling with libvlc 2.0 in Windows
Posted: 30 Jun 2012 02:03
Compiling as C in visual studio 10 with 2.0.1 headers, anything that #includes libvlc.h.
In libvlc.h:
needs to be changed to
to work (no inline)
In libvlc_media_player.h:
needs to be changed to
to work (no stdbool.h)
OR
needs to be changed to
to work (bool to int)
These issues did not exist on older versions (e.g 1.1.11).
They are still there in the current git.
I assume they cause the same issues on other platforms but compiling as C99 solves them there (inline is C99 and stdbool.h just doesn't exist here). It seems like a strange hurdle to add for little to no benefit though.
In libvlc.h:
Code: Select all
static inline int64_t libvlc_delay(int64_t pts)
Code: Select all
static int64_t libvlc_delay(int64_t pts)
In libvlc_media_player.h:
Code: Select all
# include <stdbool.h>
Code: Select all
typedef int bool;
OR
Code: Select all
typedef void (*libvlc_audio_set_volume_cb)(void *data,
float volume, bool mute);
Code: Select all
typedef void (*libvlc_audio_set_volume_cb)(void *data,
float volume, int mute);
These issues did not exist on older versions (e.g 1.1.11).
They are still there in the current git.
I assume they cause the same issues on other platforms but compiling as C99 solves them there (inline is C99 and stdbool.h just doesn't exist here). It seems like a strange hurdle to add for little to no benefit though.