Skip to content

Commit

Permalink
cppcheck: Fix knownConditionTrueFalse warning in MythBDBuffer::PressB…
Browse files Browse the repository at this point in the history
…utton.

When a hack was added to pin the Pts=1, a test for 'Pts <= 0' wasn't
removed.
  • Loading branch information
linuxdude42 committed Oct 2, 2020
1 parent 3862486 commit 7ce2724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/Bluray/mythbdbuffer.cpp
Expand Up @@ -931,7 +931,7 @@ void MythBDBuffer::PressButton(int32_t Key, int64_t Pts)
LOG(VB_PLAYBACK, LOG_INFO, LOC + QString("Key %1 (pts %2)").arg(Key).arg(Pts));
// HACK for still frame menu navigation
Pts = 1;
if (!m_bdnav || Pts <= 0 || Key < 0)
if (!m_bdnav || /*Pts <= 0 ||*/ Key < 0)
return;
bd_user_input(m_bdnav, Pts, static_cast<uint32_t>(Key));
}
Expand Down

0 comments on commit 7ce2724

Please sign in to comment.