From dd47e6e42be037d7f3cd64303763c2da017321f0 Mon Sep 17 00:00:00 2001 From: Scott Theisen Date: Mon, 22 Aug 2022 14:41:09 -0400 Subject: [PATCH] libmythtv: constify part 2 to satisfy -fpermissive --- mythtv/libs/libmythtv/mythvideoout.cpp | 2 +- mythtv/libs/libmythtv/mythvideooutgpu.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mythtv/libs/libmythtv/mythvideoout.cpp b/mythtv/libs/libmythtv/mythvideoout.cpp index b4608851673..473f619f6b2 100644 --- a/mythtv/libs/libmythtv/mythvideoout.cpp +++ b/mythtv/libs/libmythtv/mythvideoout.cpp @@ -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; diff --git a/mythtv/libs/libmythtv/mythvideooutgpu.cpp b/mythtv/libs/libmythtv/mythvideooutgpu.cpp index 232529c2d0e..ddf3fbd52e7 100644 --- a/mythtv/libs/libmythtv/mythvideooutgpu.cpp +++ b/mythtv/libs/libmythtv/mythvideooutgpu.cpp @@ -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;