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

Steve Lhomme robux4 at ycbcr.xyz
Fri Mar 13 15:00:31 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 2015474933f..f465f96c0ce 100644
--- a/test/src/player/player.c
+++ b/test/src/player/player.c
@@ -2059,9 +2059,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