VLC_EGENERIC has no equivalent in <errno.h>, so it should not alias any
<errno.h> value. This maps it to INT_MIN. It works because -INT_MIN equals
INT_MAX + 1, which is out of range of `int`. As a reminder codes in
<errno.h> are positive integers.
The convoluted definition is to avoid pulling <limits.h> into
<vlc_common.h> and from there all over the code base.
posix/sort.c won't be added because qsort_r is not supported.
- add vlc_getProxyUrl stub for emscripten
- implement vlc_thread_id() for emscripten
- add weak attribute support for wasm
Co-Authored-By: Jean-Baptiste Kempf <jb@videolan.org>
This is to allow clock_nanosleep to be used by emscripten
and potentially other platforms.
The file should not be compiled on windows platforms, as it won't
find sys/errno.h
mach/clock_types.h is needed for clock_id_t, and is only available on
macos.
Use of the previouly created trace API to collect data from demuxer, decoder and video_output.
Fields "type", "id", and "stream" are then used by a script to identify data and name curves to
display.
Here is the link of the script project: https://gitlab.com/videolabs/public/vlc-pa
Tracing system is independant from the logging system and load modules with a "tracer" capability.
The tracer module is loaded at the initialisation of a libvlc instance.
- functions returning void with a \return is incorrect.
- missing documented parameter names in the prototypes.
- copy-paste leftover for vlc_playlist_SetPlaybackOrder.
- vlc_playlist_Preparse doesn't need a libvlc instance.
- \param is used to declare a parameter, so \p should be used to
reference them.
- `type` parameter didn't exist.
- `opaque` parameter was named `data`
- \return for void functions is not correct. Moving the notice to a
\bug reference.
- \see used instead of \ref.
the old text here has been obsolete since we stopped "blindly" copying
between video_palette_t and ffmpeg/libavcodec's AVPaletteControl struct
in 61146f7e47.
The picture_t was released implicitly from vout_dispay_Display().
If the caller explicitly wants to check if the display callback is NULL
for other reasons, they might be tempted to avoid calling
vout_display_Display() at all, which would leak the picture.