mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 08:49:40 +00:00
Make PacketQueue fields atomic to avoid data races (e.g. with ParseThread)
This commit is contained in:
parent
fae5843347
commit
454bae2c43
1 changed files with 2 additions and 2 deletions
4
extern/osg-ffmpeg-videoplayer/videostate.hpp
vendored
4
extern/osg-ffmpeg-videoplayer/videostate.hpp
vendored
|
@ -80,8 +80,8 @@ struct PacketQueue {
|
|||
|
||||
AVPacketList *first_pkt, *last_pkt;
|
||||
std::atomic<bool> flushing;
|
||||
int nb_packets;
|
||||
int size;
|
||||
std::atomic<int> nb_packets;
|
||||
std::atomic<int> size;
|
||||
|
||||
OpenThreads::Mutex mutex;
|
||||
OpenThreads::Condition cond;
|
||||
|
|
Loading…
Reference in a new issue