Romain Vimont
80a8553e8a
libvlc: player: rename stop() to stop_async()
...
The new player stops asynchronously. This is a breaking change, so use a
different function name.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2019-05-22 22:03:59 +02:00
Romain Vimont
cff059cc20
player: make the lock optionally reentrant
...
This will allow to implement the old libvlc API using the new player.
<https://mailman.videolan.org/pipermail/vlc-devel/2019-May/124461.html >
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2019-05-22 22:03:46 +02:00
Romain Vimont
ddee82e3b9
libvlc: player: fix racy tests
...
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>
2019-05-22 22:03:43 +02:00
Thomas Guillem
9cd2ec2924
test: player: test a playback without any outputs
2019-05-10 14:36:02 +02:00
Thomas Guillem
5ac82dd4b0
test: player: a ctx can be used without outputs
2019-05-10 14:36:02 +02:00
Thomas Guillem
cc0ede2371
test: player: refactor ctx initialization
...
In order to use several different ctx from main().
2019-05-10 14:36:02 +02:00
Thomas Guillem
e7b17d1dc9
test: player: move ctx_destroy down
...
No functional changes.
2019-05-10 14:36:02 +02:00
Thomas Guillem
8345728100
test: player: use correct enum for vout
2019-05-10 14:36:02 +02:00
Thomas Guillem
2fed2a28d8
test: player: test outputs
2019-05-10 09:22:51 +02:00
Thomas Guillem
aa6d395b62
player: change vout events
...
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.
2019-05-10 09:22:51 +02:00
Romain Vimont
50c0fa5d65
player: pass old_caps to on_capabilities_changed
...
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>
2019-05-03 09:52:31 +02:00
Thomas Guillem
3fc4f3c951
test: media_list_player: fix build
...
This test is disabled (and should stay that way)
2019-03-26 10:25:58 +01:00
Rémi Denis-Courmont
db75e293e8
stream_fifo: use separate structure for writer side
2019-03-15 03:27:56 +02:00
Rémi Denis-Courmont
e8e9bda4de
stream_fifo: use separater poitenrs for read and write sides
2019-03-15 03:27:56 +02:00
Rémi Denis-Courmont
07b7122857
objects: introduce vlc_object_delete()
...
Objects have one strong reference held by their "owner", and zero or
more weak references generated by vlc_object_hold() et al. This
provides a separate function to remove the strong reference than
vlc_object_release() to remove weak ones.
With this sole change, this is really only an annotation though.
2019-03-06 22:53:24 +02:00
Rémi Denis-Courmont
a990818d1a
vout: introduce vout_Hold() and vout_Release()
...
Type-safe replacements for vlc_object_hold() and vlc_object_release()
(as discussed during the last workshop).
2019-03-06 22:53:24 +02:00
Thomas Guillem
4d4d6368a8
test: player: disable hw decoding
...
Fixes #21990
Regression from f58bd455bd
2019-03-04 09:34:19 +01:00
Rémi Denis-Courmont
b1b82dd7dc
test: fix variable shadowing
2019-03-03 21:24:51 +02:00
Thomas Guillem
aff97b8cd2
test: demux-libfuzzer: initialize libvlc only once
2019-02-23 10:16:39 +01:00
Thomas Guillem
547a154b7f
test: demux-run: add libvlc_demux_process_memory
...
Same than vlc_demux_process_memory but with a libvlc_instance_t arg.
2019-02-23 10:16:37 +01:00
Hugo Beauzée-Luyssen
216afa49af
test: fuzzer: Fix build
...
The entrypoint names changed after 203b4374a7
2019-02-20 14:40:03 +01:00
Hugo Beauzée-Luyssen
1ef45786bd
test: fuzzer: Remove duplicated module
2019-02-20 14:39:57 +01:00
Steve Lhomme
16c9f7b5d7
decoder: make decoder_Clean() public
...
The decoder and decoder tests actually load/unload decoders without resetting
the whole structure.
2019-02-18 16:49:31 +01:00
Steve Lhomme
94a8dbbc28
core: make the decoder owners use the decoder_Destroy()
2019-02-18 16:49:29 +01:00
Steve Lhomme
a0a06f5d70
core: make the decoder owners use the decoder_Init()
2019-02-18 16:10:41 +01:00
Thomas Guillem
500084eee9
test: make_check_wrapper: fix gdb exec path
2019-02-08 08:49:43 +01:00
Steve Lhomme
5363279805
remove the $Id$ in the source code
2019-01-17 12:21:18 +01:00
Steve Lhomme
cc2a8cdf76
decoder: initialize fields explicitly
2019-01-16 08:28:21 +01:00
Hugo Beauzée-Luyssen
35244a15dc
test: thumbnail: Fix/clarify error messages
2018-12-03 14:22:55 +01:00
Thomas Guillem
e548bfb979
test: player: fix ABA problem
...
Don't wait for the last state, but for all forthcoming states. This fixes a
deadlock when the test was waiting for the STARTED event but the playback was
already terminated (so the last event was back to STOPPED).
A=STOPPED
B=STARTED (then PLAYING, STOPPING)
A=STOPPED
2018-11-28 16:45:23 +01:00
Thomas Guillem
dabb85a3e3
test: add make_check_wrapper.sh
...
This helper will print on the standard input the failing test-suite.log and
core dump in case of a failing make check.
This script should be used by build bots in order to find the root cause of
failing tests.
See https://jenkins.videolan.org/job/vlc-continuous/job/vlc-cont-debian-x86_64/5852/console
2018-11-28 11:09:12 +01:00
Thomas Guillem
6fec0cfefc
test: dump core on timeout
2018-11-28 11:09:12 +01:00
Thomas Guillem
60f85071d4
test: configure timeout with an env variable
...
VLC_TEST_TIMEOUT=n
n <= 0 for an infinite timeout
n > 0 for a timeout of n seconds.
2018-11-26 14:47:09 +01:00
Romain Vimont
8fbc2e61bf
media source: add API to get available sources
...
Add functions to get the list of media source metadata, optionally
only for a given category.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2018-11-26 11:56:19 +01:00
Hugo Beauzée-Luyssen
eb33b4057e
test: thumbnail: Remove leftover debug
2018-11-19 13:51:27 +01:00
Hugo Beauzée-Luyssen
3950f5e118
Revert "thumbnail: disable broken test"
...
This reverts commit a84f216031
.
2018-11-19 13:50:11 +01:00
Hugo Beauzée-Luyssen
ba559e5e14
test: thumbnail: Fix test following recent rgb changes
2018-11-19 13:50:11 +01:00
Rémi Denis-Courmont
c212795864
tls: separate client and server types
...
They are manipulated differently. It makes sense to use the same types
for session, but not so much for credentials.
2018-11-18 17:56:52 +02:00
Rémi Denis-Courmont
80b494b30f
network: use vlc_tls_GetPolLFD()
2018-11-18 17:56:52 +02:00
Rémi Denis-Courmont
a84f216031
thumbnail: disable broken test
...
This test never passed. Fix build.
test_src_input_thumbnail: ../../test/src/input/thumbnail.c:78: thumbnailer_callback: Assertion `thumbnail->format.i_chroma == VLC_CODEC_RGB32' failed.
2018-11-17 16:26:34 +02:00
Thomas Guillem
d1752182b0
core: player: add tests
...
Test main player functions, but also decoder.c/es_out.c/input.c as a
consequence.
This test improves the test coverage of src/input by 20% (decoder.c coverage
goes from 0 to 60%).
2018-11-15 17:22:07 +01:00
Hugo Beauzée-Luyssen
a7f26b8bfe
test: Add a thumbnailing test
2018-11-12 17:09:05 +01:00
Hugo Beauzée-Luyssen
23f9eba5b8
test: Makefile.am: Fix indentation
2018-11-12 17:09:05 +01:00
Thomas Guillem
b0cd7eb6fa
tests: rename log() to test_log()
...
This fixes conflict with math.h:
"A macro called log was already defined when <math.h> was included.
This will cause compilation problems."
This will happen with the new player test, that includes vlc_viewpoint.h that
includes math.h
2018-10-03 13:29:05 +02:00
Francois Cartegnie
5c1f719c4b
tests: vlc_bits: improve and test ep3b
2018-08-20 16:52:27 +02:00
Francois Cartegnie
273e38d0c3
vlc_bits: rework for custom handler pos/remain accounting
2018-08-20 16:48:20 +02:00
Romain Vimont
d56e796169
libvlc: receive events from input thread
...
Replace listeners on the input item by preparser callbacks (for
preparsing) and input thread callbacks (for normal playback).
2018-08-20 13:51:28 +02:00
Romain Vimont
812579453b
preparser: provide events in callbacks
...
The input thread used by the preparser is not exposed to the caller.
Add a "callbacks" parameter to receive preparsing events.
2018-08-20 13:51:28 +02:00
Francois Cartegnie
427bfaa619
test: bits: fail with exit code instead of assert
2018-08-12 17:14:00 +02:00
Francois Cartegnie
39cecfd7ca
test: fix distcheck with dash uri test
2018-08-01 09:51:34 +02:00