Skip to content

Commit

Permalink
Merge pull request #2774 from softins/fix-new-empty-chaninfo
Browse files Browse the repository at this point in the history
  • Loading branch information
ann0see authored Aug 9, 2022
2 parents 707634e + 851d752 commit 820c4aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,11 @@ float CChannel::GetPan ( const int iChanID )

void CChannel::SetChanInfo ( const CChannelCoreInfo& NChanInf )
{
bIsIdentified = true; // Indicate we have received channel info

// apply value (if different from previous one)
if ( ChannelInfo != NChanInf )
// apply value (if a new channel or different from previous one)
if ( !bIsIdentified || ChannelInfo != NChanInf )
{
bIsIdentified = true; // Indicate we have received channel info

ChannelInfo = NChanInf;

// fire message that the channel info has changed
Expand Down

0 comments on commit 820c4aa

Please sign in to comment.