aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/command_classes/codecs/codec.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-11-03 16:34:07 -0800
committerGitHub <noreply@github.com>2020-11-03 16:34:07 -0800
commit4bfa411ddcf3b5454c85ada70f28438feaaae93e (patch)
treebf7e27c7e5ba36ace45e36b93cc533835d7cfb91 /src/video_core/command_classes/codecs/codec.h
parent46fdc94586145cdfcf4814f637380c75cb275e31 (diff)
parent4f0f481f63d0d5587a6d6d319f9815de87ed79ec (diff)
Merge pull request #4874 from lioncash/nodiscard2
nvdec: Make use of [[nodiscard]] where applicable
Diffstat (limited to 'src/video_core/command_classes/codecs/codec.h')
-rw-r--r--src/video_core/command_classes/codecs/codec.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/command_classes/codecs/codec.h b/src/video_core/command_classes/codecs/codec.h
index cb67094f6..5bbe6a332 100644
--- a/src/video_core/command_classes/codecs/codec.h
+++ b/src/video_core/command_classes/codecs/codec.h
@@ -42,11 +42,11 @@ public:
void Decode();
/// Returns most recently decoded frame
- AVFrame* GetCurrentFrame();
- const AVFrame* GetCurrentFrame() const;
+ [[nodiscard]] AVFrame* GetCurrentFrame();
+ [[nodiscard]] const AVFrame* GetCurrentFrame() const;
/// Returns the value of current_codec
- NvdecCommon::VideoCodec GetCurrentCodec() const;
+ [[nodiscard]] NvdecCommon::VideoCodec GetCurrentCodec() const;
private:
bool initialized{};