[vlc-devel] [PATCH 2/2] test: player: don't create the "window" variable in libvlc

Steve Lhomme robux4 at ycbcr.xyz
Thu Feb 13 09:21:09 CET 2020


The variable already exists in libvlc.
---
 test/src/player/player.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/test/src/player/player.c b/test/src/player/player.c
index 2fb79aba892..f2e8f3255e4 100644
--- a/test/src/player/player.c
+++ b/test/src/player/player.c
@@ -1858,9 +1858,7 @@ REPORT_LIST
     reports_init(&ctx->report);
 
     /* Force wdummy window */
-    int ret = var_Create(vlc->p_libvlc_int, "window", VLC_VAR_STRING);
-    assert(ret == VLC_SUCCESS);
-    ret = var_SetString(vlc->p_libvlc_int, "window", "wdummy");
+    int ret = var_SetString(vlc->p_libvlc_int, "window", "wdummy");
     assert(ret == VLC_SUCCESS);
 
     ctx->player = vlc_player_New(VLC_OBJECT(vlc->p_libvlc_int),
-- 
2.17.1



More information about the vlc-devel mailing list