The variable already exists in libvlc. If for some reason the variable is
removed from libvlc this test should fail as it's setting a variable that will
no longer be used.
It's easier to read than sizeof(x)/sizeof(*x) and provides more
information than using a define on this previous value.
Signed-off-by: Tristan Matthews <tmatth@videolan.org>
It will be used to differentiate the master source (in = NULL) from the slave
ones.
It is passed from input_EsOutSourceNew() to the timeshift es_out to the core
es_out, via cbs->add() and cbs->control().
Private controls are necessarily called from the input_thead_t (or via
timeshift via the input_thread_t). Public controls can be called from demuxers
of the input_thread_t.
This separation will help the process of adding new es_out controls, specially
private one that don't need to be added in public headers.
Furthermore, this will help a future control ES_OUT_PRIV_SET_ES_CAT_IDS: that
will be able to be executed when the input is started or not. I think that such
new control should be explicitly made private.
Since the timer test is relying on all video frames to be processed.
This test is playing a 4x4 RGBA video @ 120 fps. This doesn't require a high
CPU usage but it still could fail when the machine (the CI!) was on heavy load.
We need to ignore leaks there because Qt has always leaked.
However, the return code for other more critical errors than leaks must
not be zero. Otherwise the test is effectively disabled when ASan is
present.
This change has no effects without ASan.
Reminder of the current behavior: the meta fetcher is either always triggered
after the preparser is finished or manually.
This commit aims to give more controls so that the meta fetcher is not
necessarily triggered after a preparsng.
The current behavior of macOS/playlist/mediatree is unchanged (the components
touching the preparser).
Here are the API changes for
libvlc_MetadataRequest():
- Can't be called without a valid META_REQUEST_OPTION_SCOPE_* flag
- The flag META_REQUEST_OPTION_SCOPE_* is not fetching meta anymore. Use
(META_REQUEST_OPTION_SCOPE_*|META_REQUEST_OPTION_FETCH_*) to fetch meta when
the preparsing ends.
libvlc_ArtRequest():
- Can't be called without a valid META_REQUEST_OPTION_FETCH_* flag.
- The META_REQUEST_OPTION_FETCH_NETWORK flag will now only fetch meta via
network.
libvlc_media_parse_with_options():
- The flag libvlc_media_parse_* is not fetching meta anymore. Use
libvlc_media_fetch_* to fetch meta when the preparsing ends.
- The libvlc_media_fetch_network flag will now only fetch meta via network.
vlc_player_GetVoutFromEsId() can now return the vout used by an SPU es_id.
It also returns the vout order.
The on_vout_changed callback is also used for SPU es_ids. Users could check the
category of the es_id to know if the vout is attached to a VIDEO es or an SPU
one.
In order to wait for a specific state, libvlc player tests used live
loops to read the player state.
Listen to state changes instead.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
No real functional changes. Changes the callback and enum names to reflect the
real event: vout are now started and stopped. The same vout can be started and
stopped several time.
The capabilities are stored in a bitset. When it changes, it may be
useful to know its old value, to know which capability changed.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>