Commit 12e16c3e authored by Steve Lhomme's avatar Steve Lhomme

Thumbnailer: don't cancel if the bitmap is pending to be saved

parent 45274d05
......@@ -103,7 +103,11 @@ static void CancelPreparse(const libvlc_event_t*, void* data)
#ifndef NDEBUG
OutputFormattedDebug(L"canceling thumb_sys 0x%1!p! %2!d!x%3!d!\n", sys, sys->thumbWidth, sys->thumbHeight);
#endif /* NDEBUG */
int s = THUMB_SEEKING;
int s = THUMB_RENDERING;
if (sys->state.compare_exchange_strong(s, THUMB_RENDERING))
return;
s = THUMB_SEEKING;
if (sys->state.compare_exchange_strong(s, THUMB_CANCELLED) == false)
{
if (s == THUMB_SEEKED)
......
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