[vlc-commits] [Git][videolan/vlc][master] 2 commits: test: thumbnail: Reduce delay before adding video track
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sun Sep 12 16:13:45 UTC 2021
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
cc6f1a1c by Hugo Beauzée-Luyssen at 2021-09-12T15:32:17+00:00
test: thumbnail: Reduce delay before adding video track
This will help fix some sporadic failures when the test runs on a
heavily loaded machine.
The track was added after 2 "minutes" by the mock demuxer, which under
heavy load could take more than the second the test is allowed to run
for.
- - - - -
67fbe60e by Hugo Beauzée-Luyssen at 2021-09-12T15:32:17+00:00
test: thumbnail: Increase test timeout
- - - - -
1 changed file:
- test/src/input/thumbnail.c
Changes:
=====================================
test/src/input/thumbnail.c
=====================================
@@ -55,7 +55,7 @@ const struct
/* Take a thumbnail of a file without video, which should timeout. */
{ 0, 1, VLC_TICK_INVALID, VLC_TICK_FROM_SEC( 60 ), .0f, false, true, VLC_TICK_FROM_MS( 100 ), false },
/* Take a thumbnail of a file with a video track starting later */
- { 1, 1, VLC_TICK_FROM_SEC( 120 ), VLC_TICK_FROM_SEC( 60 ), .0f, false, true,
+ { 1, 1, VLC_TICK_FROM_SEC( 60 ), VLC_TICK_FROM_SEC( 30 ), .0f, false, true,
VLC_TICK_FROM_SEC( 2 ), true },
};
@@ -151,7 +151,7 @@ static void test_thumbnails( libvlc_instance_t* p_vlc )
while ( ctx.b_done == false )
{
- vlc_tick_t timeout = vlc_tick_now() + VLC_TICK_FROM_SEC( 1 );
+ vlc_tick_t timeout = vlc_tick_now() + VLC_TICK_FROM_SEC( 2 );
res = vlc_cond_timedwait( &ctx.cond, &ctx.lock, timeout );
assert( res != ETIMEDOUT );
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b605fd25e97c75aa147b9bfd7fb530904eed27c7...67fbe60e319ccdbf2be5db4056764473a406a523
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b605fd25e97c75aa147b9bfd7fb530904eed27c7...67fbe60e319ccdbf2be5db4056764473a406a523
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list