Skip to content

Commit

Permalink
MythVideoOutputGPU: Don't use else after return (clang-tidy)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Dec 24, 2020
1 parent be78bfa commit f9d2fdd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mythtv/libs/libmythtv/mythvideooutgpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ MythVideoOutputGPU *MythVideoOutputGPU::Create(MythMainWindow* MainWindow, MythR

VideoFrameType MythVideoOutputGPU::FrameTypeForCodec(MythCodecID CodecId)
{
if (codec_is_vaapi(CodecId)) return FMT_VAAPI;
else if (codec_is_vdpau(CodecId)) return FMT_VDPAU;
else if (codec_is_nvdec(CodecId)) return FMT_NVDEC;
else if (codec_is_vtb(CodecId)) return FMT_VTB;
else if (codec_is_mmal(CodecId)) return FMT_MMAL;
else if (codec_is_v4l2(CodecId) || codec_is_drmprime(CodecId)) return FMT_DRMPRIME;
else if (codec_is_mediacodec(CodecId)) return FMT_MEDIACODEC;
if (codec_is_vaapi(CodecId)) return FMT_VAAPI;
if (codec_is_vdpau(CodecId)) return FMT_VDPAU;
if (codec_is_nvdec(CodecId)) return FMT_NVDEC;
if (codec_is_vtb(CodecId)) return FMT_VTB;
if (codec_is_mmal(CodecId)) return FMT_MMAL;
if (codec_is_v4l2(CodecId) || codec_is_drmprime(CodecId)) return FMT_DRMPRIME;
if (codec_is_mediacodec(CodecId)) return FMT_MEDIACODEC;
return FMT_NONE;
}

Expand Down

0 comments on commit f9d2fdd

Please sign in to comment.