[vlc-commits] [Git][videolan/vlc][master] 2 commits: test: player: ensure the plugin bank is kept

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Wed Jun 29 22:16:25 UTC 2022



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
9635a1e4 by Alexandre Janniaux at 2022-06-29T21:44:54+00:00
test: player: ensure the plugin bank is kept

- - - - -
6d196e38 by Alexandre Janniaux at 2022-06-29T21:44:54+00:00
test: player: fix missing line feed

- - - - -


1 changed file:

- test/src/player/player.c


Changes:

=====================================
test/src/player/player.c
=====================================
@@ -1655,7 +1655,7 @@ test_error(struct ctx *ctx)
 static void
 test_unknown_uri(struct ctx *ctx)
 {
-    test_log("unknown_uri");
+    test_log("unknown_uri\n");
     vlc_player_t *player = ctx->player;
 
     input_item_t *media = input_item_New("unknownuri://foo", "fail");
@@ -2898,6 +2898,10 @@ main(void)
 {
     test_init();
 
+    /* Keep an instance to keep the module bank loaded */
+    libvlc_instance_t *dummy = libvlc_new(0, NULL);
+    assert(dummy != NULL);
+
     struct ctx ctx;
 
     /* Test with --aout=none --vout=none */
@@ -2936,5 +2940,7 @@ main(void)
     test_audio_loudness_meter(&ctx);
 
     ctx_destroy(&ctx);
+
+    libvlc_release(dummy);
     return 0;
 }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7cba16304dd2fe49e965b75a9ba8cdaa668cb166...6d196e383eb50d8f7dec8bf8958a6c544fc5bdf1

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7cba16304dd2fe49e965b75a9ba8cdaa668cb166...6d196e383eb50d8f7dec8bf8958a6c544fc5bdf1
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list