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
Francois Cartegnie
d5fd1c8ca2
tests: check dash uri token replacements
2018-07-31 18:31:32 +02:00
Steve Lhomme
ccd4241414
modules: set 0 for items which value is actually 0
...
And it should not be set explicitly to INPUT_DURATION_NONE which is for nodes
and directories.
2018-07-30 07:15:31 +02:00
Rémi Denis-Courmont
9541414aea
tls: use const struct for callbacks
2018-07-29 12:00:59 +03:00
Thomas Guillem
967a217668
test_input_stream: reduce random file size
...
1MB is enough, this fixes test timeout happening randomly.
2018-07-12 18:49:13 +02:00
Steve Lhomme
19b2429265
test:demux-run: use %PRIuMAX instead of %ju
2018-07-11 09:31:27 +02:00
Steve Lhomme
cdc784b2e9
libvlc: make use of the special duration value INPUT_DURATION_ZERO
...
Instead of a hardcoded value
2018-07-07 10:16:25 +02:00
Steve Lhomme
c7ba6127be
test:libvlc: explicitly convert milliseconds into vlc_tick_t
2018-07-06 16:05:24 +02:00
Steve Lhomme
26fef56c52
core: make DEMUX/STREAM_GET_PTS_DELAY officially a vlc_tick_t
2018-07-06 10:48:19 +02:00
Steve Lhomme
8b0c6bb9fa
rename msleep() to vlc_tick_sleep()
2018-06-22 13:29:09 +02:00
Steve Lhomme
a6149e2c1e
include: rename vlc_mtime.h to vlc_tick.h
2018-06-22 13:26:57 +02:00
Steve Lhomme
ff56c92a5e
rename mtime_t to vlc_tick_t
...
Keep a copy of vlc_tick_tfor backward compatibility.
2018-06-22 13:19:24 +02:00