X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fvideo_stream.h;h=05bd7a7b9453c46228ce66eb08362223ddeb40c3;hb=c71ef0f3bbba901f6019083acd56ff43c1654a98;hp=422b1522a28a993d056d5eea2344a05ce13243c6;hpb=94a228f7473325130704e96c82937b690703615b;p=nageru diff --git a/futatabi/video_stream.h b/futatabi/video_stream.h index 422b152..05bd7a7 100644 --- a/futatabi/video_stream.h +++ b/futatabi/video_stream.h @@ -99,7 +99,7 @@ private: void operator() (InterpolatedFrameResources *ifr) const { if (ifr != nullptr) { - std::unique_lock lock(ifr->owner->queue_lock); + std::lock_guard lock(ifr->owner->queue_lock); ifr->owner->interpolate_resources.emplace_back(ifr); } }