Skip to content

Commit

Permalink
libmythtv: constify part 2
Browse files Browse the repository at this point in the history
to satisfy -fpermissive
  • Loading branch information
ulmus-scott authored and bennettpeter committed Aug 25, 2022
1 parent ae48d0f commit dd47e6e
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/mythvideoout.cpp
Expand Up @@ -191,7 +191,7 @@ bool MythVideoOutput::InputChanged(const QSize VideoDim, const QSize VideoDispDi
SourceChanged(VideoDim, VideoDispDim, VideoAspect);
m_maxReferenceFrames = ReferenceFrames;
AVCodecID avCodecId = myth2av_codecid(CodecID);
AVCodec* codec = avcodec_find_decoder(avCodecId);
const AVCodec* codec = avcodec_find_decoder(avCodecId);
QString codecName;
if (codec)
codecName = codec->name;
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mythvideooutgpu.cpp
Expand Up @@ -511,7 +511,7 @@ bool MythVideoOutputGPU::ProcessInputChange()
// to be inconsistent.
SourceChanged(m_newVideoDim, m_newVideoDispDim, m_newAspect);
AVCodecID avCodecId = myth2av_codecid(m_newCodecId);
AVCodec* codec = avcodec_find_decoder(avCodecId);
const AVCodec* codec = avcodec_find_decoder(avCodecId);
QString codecName;
if (codec)
codecName = codec->name;
Expand Down

0 comments on commit dd47e6e

Please sign in to comment.