Skip to content

Commit

Permalink
Fix "marked ‘override’, but does not override" error message.
Browse files Browse the repository at this point in the history
One of the function arguments in the parent class of MythMMALContext was
made const in c8bef3c, and the change wasn't reflected in this class.
  • Loading branch information
linuxdude42 committed Oct 26, 2022
1 parent 7194e3f commit d16f11d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/decoders/mythmmalcontext.cpp
Expand Up @@ -148,7 +148,7 @@ int MythMMALContext::HwDecoderInit(AVCodecContext *Context)
return m_interop ? 0 : -1;
}

void MythMMALContext::SetDecoderOptions(AVCodecContext *Context, AVCodec *Codec)
void MythMMALContext::SetDecoderOptions(AVCodecContext *Context, const AVCodec *Codec)
{
if (!(codec_is_mmal(m_codecID)))
return;
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/decoders/mythmmalcontext.h
Expand Up @@ -20,7 +20,7 @@ class MythMMALContext : public MythCodecContext
void InitVideoCodec (AVCodecContext *Context, bool SelectedStream, bool &DirectRendering) override;
bool RetrieveFrame (AVCodecContext *Context, MythVideoFrame *Frame, AVFrame *AvFrame) override;
int HwDecoderInit (AVCodecContext *Context) override;
void SetDecoderOptions (AVCodecContext *Context, AVCodec *Codec) override;
void SetDecoderOptions (AVCodecContext *Context, const AVCodec *Codec) override;
static bool GetBuffer (AVCodecContext *Context, MythVideoFrame *Frame, AVFrame *AvFrame, int);
bool GetBuffer2 (AVCodecContext *Context, MythVideoFrame *Frame, AVFrame *AvFrame, int);
static enum AVPixelFormat GetFormat (AVCodecContext*, const AVPixelFormat *PixFmt);
Expand Down

0 comments on commit d16f11d

Please sign in to comment.