diff options
author | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2019-05-02 09:09:11 +0200 |
---|---|---|
committer | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2019-05-02 09:10:24 +0200 |
commit | c0acfa567822b60101b5a83739402139f18b6d70 (patch) | |
tree | 0c7c1ed12735f347a0836ad612cf66d9e5c90541 | |
parent | f727c1d2913d8c1822ce31dd39869fcf5cf88313 (diff) |
[PVR] Fix CPVREpg::(Add|Update)Entry to not overwrite channeldata and epgid.
-rw-r--r-- | xbmc/pvr/epg/Epg.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xbmc/pvr/epg/Epg.cpp b/xbmc/pvr/epg/Epg.cpp index 42ec788c20..860dc3257d 100644 --- a/xbmc/pvr/epg/Epg.cpp +++ b/xbmc/pvr/epg/Epg.cpp @@ -258,11 +258,12 @@ void CPVREpg::AddEntry(const CPVREpgInfoTag &tag) newTag = it->second; else { - newTag = std::make_shared<CPVREpgInfoTag>(m_channelData, m_iEpgID); + newTag.reset(new CPVREpgInfoTag()); m_tags.insert(std::make_pair(tag.StartAsUTC(), newTag)); } newTag->Update(tag); + newTag->SetChannelData(m_channelData); newTag->SetEpgID(m_iEpgID); } @@ -348,13 +349,14 @@ bool CPVREpg::UpdateEntry(const CPVREpgInfoTagPtr &tag, bool bUpdateDatabase) } else { - infoTag = std::make_shared<CPVREpgInfoTag>(m_channelData, m_iEpgID); + infoTag.reset(new CPVREpgInfoTag()); infoTag->SetUniqueBroadcastID(tag->UniqueBroadcastID()); m_tags.insert(std::make_pair(tag->StartAsUTC(), infoTag)); bNewTag = true; } infoTag->Update(*tag, bNewTag); + infoTag->SetChannelData(m_channelData); infoTag->SetEpgID(m_iEpgID); if (bUpdateDatabase) |