X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fvideo_stream.h;fp=futatabi%2Fvideo_stream.h;h=05bd7a7b9453c46228ce66eb08362223ddeb40c3;hb=b44bf7cfce6a5aaffbcd1e37df39068a163438ad;hp=422b1522a28a993d056d5eea2344a05ce13243c6;hpb=add8bb3a499cfeaad58bf5bdbda68391bab64059;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); } }