Skip to content

Commit

Permalink
Merge pull request #7253 from AlwinEsch/pvr-code-cleanup
Browse files Browse the repository at this point in the history
[epg] Remove call a bit
  • Loading branch information
Jalle19 committed Jun 11, 2015
2 parents 50441ee + 088d522 commit bc4997c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/epg/Epg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,8 @@ bool CEpg::UpdateEntry(const EPG_TAG *data, bool bUpdateDatabase /* = false */)

bool CEpg::IsRadio(void) const
{
CPVRChannelPtr channel = Channel();
return channel ? channel->IsRadio() : false;
CSingleLock lock(m_critSection);
return m_pvrChannel ? m_pvrChannel->IsRadio() : false;
}

bool CEpg::IsRemovableTag(const CEpgInfoTag &tag) const
Expand Down Expand Up @@ -859,6 +859,6 @@ bool CEpg::IsValid(void) const
{
CSingleLock lock(m_critSection);
if (ScraperName() == "client")
return Channel().get() != NULL;
return m_pvrChannel != NULL;
return true;
}

0 comments on commit bc4997c

Please sign in to comment.