summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-03 21:18:53 +0100
committerCarl Hetherington <cth@carlh.net>2021-12-03 21:23:07 +0100
commitd2e1ad67f3babbd997529839fe0e27582a8d28ba (patch)
tree3252901cf3a302508f978d7022047df8baa1dad2 /src/lib
parent6d29ca45eb2e507521b7e07107516828a3b2d86b (diff)
Remove unnecessary check.cleanups
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ffmpeg_file_encoder.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/ffmpeg_file_encoder.cc b/src/lib/ffmpeg_file_encoder.cc
index 705557f79..f7204d084 100644
--- a/src/lib/ffmpeg_file_encoder.cc
+++ b/src/lib/ffmpeg_file_encoder.cc
@@ -501,7 +501,5 @@ void
FFmpegFileEncoder::buffer_free2 (uint8_t* data)
{
boost::mutex::scoped_lock lm (_pending_images_mutex);
- if (_pending_images.find(data) != _pending_images.end()) {
- _pending_images.erase (data);
- }
+ _pending_images.erase (data);
}