From 3fc201d9850d006374f050a72d2988dd24862647 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 13 Mar 2019 09:58:33 +0100 Subject: [PATCH] input/ffmpeg: add `noexcept` --- src/input/plugins/FfmpegInputPlugin.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/input/plugins/FfmpegInputPlugin.cxx b/src/input/plugins/FfmpegInputPlugin.cxx index 11376ae99..48ed0bb4b 100644 --- a/src/input/plugins/FfmpegInputPlugin.cxx +++ b/src/input/plugins/FfmpegInputPlugin.cxx @@ -51,7 +51,7 @@ struct FfmpegInputStream final : public InputStream { SetReady(); } - ~FfmpegInputStream() { + ~FfmpegInputStream() noexcept { avio_close(h); } @@ -61,8 +61,9 @@ struct FfmpegInputStream final : public InputStream { void Seek(offset_type offset) override; }; +gcc_const static inline bool -input_ffmpeg_supported(void) +input_ffmpeg_supported() noexcept { void *opaque = nullptr; return avio_enum_protocols(&opaque, 0) != nullptr;