Skip to content

C++: Use lambda to static initialize vlc_player and vlc_playlist callbacks

The callbacks needed to be defined with the correct order and without oversight since C++14 doesn't support designated initializer. But vlc_player and vlc_playlist callbacks are all optional and there's no point in having such constraint for C++ code. Use a static lambda initializer with an initial zero-initializer to circumvent this limitation.

Merge request reports