Commit b3b89327 authored by Thomas Guillem's avatar Thomas Guillem

VLCThumbnailer: notify from display callback

Lock/unlock callbacks are now only called for pictures allocation.
parent 0af31ec5
......@@ -220,16 +220,16 @@ void VLCThumbnailer::setupVout( VLC::MediaPlayer& mp )
return nullptr;
},
//unlock
[this](void*, void*const*) {
nullptr,
//display
[this](void*) {
bool expected = true;
if ( m_thumbnailRequired.compare_exchange_strong( expected, false ) )
{
m_cond.notify_all();
}
}
,
//display
nullptr
);
}
......
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