diff --git a/extern/osg-ffmpeg-videoplayer/videostate.hpp b/extern/osg-ffmpeg-videoplayer/videostate.hpp index 6abaa64cd5..54519f428d 100644 --- a/extern/osg-ffmpeg-videoplayer/videostate.hpp +++ b/extern/osg-ffmpeg-videoplayer/videostate.hpp @@ -80,8 +80,8 @@ struct PacketQueue { AVPacketList *first_pkt, *last_pkt; std::atomic flushing; - int nb_packets; - int size; + std::atomic nb_packets; + std::atomic size; OpenThreads::Mutex mutex; OpenThreads::Condition cond;