Commit 885dc3d8 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

VLCThumbnailer: Update to VLC 4 API

parent d3fd7c33
......@@ -193,7 +193,11 @@ bool VLCThumbnailer::seekAhead( Task& task )
auto success = false;
{
std::unique_lock<compat::Mutex> lock( task.mutex );
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(4, 0, 0, 0)
task.mp.setPosition( .4f, true );
#else
task.mp.setPosition( .4f );
#endif
success = task.cond.wait_for( lock, std::chrono::seconds( 3 ), [&pos]() {
return pos >= .1f;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment