Skip to content
Snippets Groups Projects
Commit baf5d61a authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

VLCThumbnailer: Update to VLC 4 API


(cherry picked from commit 885dc3d8)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 0c3c04d7
Branches 0.3.x
No related tags found
No related merge requests found
......@@ -287,7 +287,11 @@ parser::Task::Status VLCThumbnailer::seekAhead( VLC::MediaPlayer& mp )
auto success = false;
{
std::unique_lock<compat::Mutex> lock( m_mutex );
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(4, 0, 0, 0)
mp.setPosition( .4f, true );
#else
mp.setPosition( .4f );
#endif
success = m_cond.wait_for( lock, std::chrono::seconds( 3 ), [&pos]() {
return pos >= .1f;
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment