Minor fixes, Alternative rendering mode

This commit is contained in:
Niellune
2026-03-12 20:13:45 +02:00
parent 570695fbcf
commit cef813bcd6
14 changed files with 157 additions and 46 deletions
+2 -2
View File
@@ -78,8 +78,8 @@ public:
unique_lock<std::mutex> lock(_mtx);
_lock.wait(lock, [&]
{ return _count > count || !waitFlag; });
return waitFlag;
{ return _count > count || !waitFlag.load(); });
return waitFlag.load();
}
void clear()
+8
View File
@@ -42,6 +42,14 @@ public:
}
}
uint32_t latestId()
{
int index = _latest.load();
if (index < 0)
return 0;
return _ids[index];
}
bool latest(AVFrame **frame, uint32_t *id)
{
_reading.store(_latest.load());