[vlc-commits] medialibrary: thumbnailer: include stdexcept for runtime_error

Alexandre Janniaux git at videolan.org
Wed Jun 3 13:46:31 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Wed May 20 20:20:27 2020 +0200| [28f578ec0263c38be562747922007a7123434a5f] | committer: Steve Lhomme

medialibrary: thumbnailer: include stdexcept for runtime_error

std::runtime_error is used in the code and stdexcept available through
transitive inclusion from medialibrary headers, but it might not be and
it is much safer to include it ourselves.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=28f578ec0263c38be562747922007a7123434a5f
---

 modules/misc/medialibrary/Thumbnailer.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/misc/medialibrary/Thumbnailer.cpp b/modules/misc/medialibrary/Thumbnailer.cpp
index 0a5aafe7f0..51889e814e 100644
--- a/modules/misc/medialibrary/Thumbnailer.cpp
+++ b/modules/misc/medialibrary/Thumbnailer.cpp
@@ -30,6 +30,8 @@
 #include <vlc_url.h>
 #include <vlc_cxx_helpers.hpp>
 
+#include <stdexcept>
+
 Thumbnailer::Thumbnailer( vlc_medialibrary_module_t* ml )
     : m_ml( ml )
     , m_currentContext( nullptr )



More information about the vlc-commits mailing list