[vlc-devel] [PATCH 5/6] test: player: a ctx can be used without outputs
Thomas Guillem
thomas at gllm.fr
Fri May 10 11:06:02 CEST 2019
---
test/src/input/player.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/test/src/input/player.c b/test/src/input/player.c
index 2276cd2b07..f9005a8e3e 100644
--- a/test/src/input/player.c
+++ b/test/src/input/player.c
@@ -1750,9 +1750,9 @@ REPORT_LIST
}
static void
-ctx_init(struct ctx *ctx)
+ctx_init(struct ctx *ctx, bool use_outputs)
{
- static const char * argv[] = {
+ const char * argv[] = {
"-v",
"--ignore-config",
"-Idummy",
@@ -1760,8 +1760,8 @@ ctx_init(struct ctx *ctx)
/* Avoid leaks from various dlopen... */
"--codec=araw,rawvideo,subsdec,none",
"--dec-dev=none",
- "--vout=dummy",
- "--aout=dummy",
+ use_outputs ? "--vout=dummy" : "--vout=none",
+ use_outputs ? "--aout=dummy" : "--aout=none",
};
libvlc_instance_t *vlc = libvlc_new(ARRAY_SIZE(argv), argv);
assert(vlc);
@@ -1809,7 +1809,7 @@ main(void)
struct ctx ctx;
- ctx_init(&ctx);
+ ctx_init(&ctx, true);
test_outputs(&ctx); /* Must be the first test */
--
2.20.1
More information about the vlc-devel
mailing list