Skip to content

Commit

Permalink
[CodecHandler] Dont always override internal codec name
Browse files Browse the repository at this point in the history
If codec name its the same dont override the internal codec name to prevent to get lost the custom ec3-joc internal name
this is needed until kodi implements ffmpeg 6.1 or greater from that version can detect the Atmos profile
  • Loading branch information
CastagnaIT committed Aug 17, 2023
1 parent 0c2dc19 commit 8d39a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codechandler/CodecHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bool CodecHandler::UpdateInfoCodecName(kodi::addon::InputstreamInfo& info, const

AP4_String codecStr;
m_sampleDescription->GetCodecString(codecStr);
if (codecStr.GetLength() > 0 && info.GetCodecInternalName() != codecStr.GetChars())
if (isChanged && codecStr.GetLength() > 0 && info.GetCodecInternalName() != codecStr.GetChars())
{
info.SetCodecInternalName(codecStr.GetChars());
isChanged = true;
Expand Down

0 comments on commit 8d39a85

Please sign in to comment.