dirkvdb / ffmpegthumbnailer

Lightweight video thumbnailer that can be used by file managers to create thumbnails for video files
GNU General Public License v2.0
489 stars 70 forks source link

videothumbnailer.cpp: add <cstring> include for strerror() #213

Closed trofi closed 2 years ago

trofi commented 2 years ago

Upcoming gcc-12 cleaned implicit headers includes further and exposed missing include as this build failure:

libffmpegthumbnailer/videothumbnailer.cpp: In member function 'void ffmpegthumbnailer::VideoThumbnailer::writeImage(...)':
libffmpegthumbnailer/videothumbnailer.cpp:274:109: error: 'strerror' was not declared in this scope; did you mean 'stderr'?
  274 |             TraceMessage(ThumbnailerLogLevelError, std::string("Failed to stat file ") + videoFile + " (" + strerror(errno) + ")");