aboutsummaryrefslogtreecommitdiff
path: root/xbmc/pvr/channels/PVRChannelGroupsContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/pvr/channels/PVRChannelGroupsContainer.cpp')
-rw-r--r--xbmc/pvr/channels/PVRChannelGroupsContainer.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/xbmc/pvr/channels/PVRChannelGroupsContainer.cpp b/xbmc/pvr/channels/PVRChannelGroupsContainer.cpp
index 47a4b2f3e9..3c76d1e731 100644
--- a/xbmc/pvr/channels/PVRChannelGroupsContainer.cpp
+++ b/xbmc/pvr/channels/PVRChannelGroupsContainer.cpp
@@ -291,3 +291,16 @@ bool CPVRChannelGroupsContainer::CreateChannelEpgs(void)
return m_groupsRadio->CreateChannelEpgs() &&
m_groupsTV->CreateChannelEpgs();
}
+
+CPVRChannelGroupPtr CPVRChannelGroupsContainer::GetPreviousPlayedGroup(void)
+{
+ CSingleLock lock(m_critSection);
+ return m_lastPlayedGroups[0];
+}
+
+void CPVRChannelGroupsContainer::SetLastPlayedGroup(CPVRChannelGroupPtr group)
+{
+ CSingleLock lock(m_critSection);
+ m_lastPlayedGroups[0] = m_lastPlayedGroups[1];
+ m_lastPlayedGroups[1] = group;
+}